forked from scalatest/test-interface
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathFramework.java
More file actions
38 lines (33 loc) · 1.27 KB
/
Framework.java
File metadata and controls
38 lines (33 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package sbt.testing;
/**
* Interface implemented by test frameworks.
*/
public interface Framework {
/**
* A human-friendly name of the test framework that this object represents.
*/
public String name();
/**
* An array of <a href="Fingerprint.html"><code>Fingerprint</code></a>s that specify how to identify test classes during
* discovery.
*/
public Fingerprint[] fingerprints();
/**
* Initiates a run.
*
* <p>
* If a client invokes this method before a previously initiated run has completed,
* the test framework may throw <code>IllegalStateException</code>to indicate it
* cannot perform the two runs concurrently.
* </p>
*
* @param args the test-framework-specific arguments for the new run
* @param remoteArgs the test-framework-specific remote arguments for the run in a forked JVM
* @param testClassLoader a class loader to use when loading test classes during the run
*
* @return a <code>Runner</code> representing the newly started run.
* @throws IllegalStateException if the test framework is unable to initiate a run because it is
* already performing a previously initiated run that has not yet completed.
*/
public Runner runner(String[] args, String[] remoteArgs, ClassLoader testClassLoader);
}