mirror of
https://github.com/sbt/sbt.git
synced 2026-09-01 02:27:13 +02:00
-Changed behavior so that only a single Runner instance is used to run tests in multiple test groups.
-Added code to support remoteArgs in test-interface 1.0.
This commit is contained in:
@@ -189,6 +189,7 @@ public class ForkMain {
|
||||
for (int i = 0; i < nFrameworks; i++) {
|
||||
final String implClassName = (String) is.readObject();
|
||||
final String[] frameworkArgs = (String[]) is.readObject();
|
||||
final String[] remoteFrameworkArgs = (String[]) is.readObject();
|
||||
|
||||
final Framework framework;
|
||||
try {
|
||||
@@ -208,7 +209,7 @@ public class ForkMain {
|
||||
if (matches(testFingerprint, test.fingerprint)) filteredTests.add(test);
|
||||
}
|
||||
}
|
||||
final Runner runner = framework.runner(frameworkArgs, new String[0], getClass().getClassLoader());
|
||||
final Runner runner = framework.runner(frameworkArgs, remoteFrameworkArgs, getClass().getClassLoader());
|
||||
for (ForkTestDefinition test : filteredTests)
|
||||
runTestSafe(test, runner, loggers, os);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user