-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:
cheeseng
2013-04-23 11:09:50 +08:00
parent d2e40c1c56
commit 244e65cd79
6 changed files with 41 additions and 35 deletions
@@ -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);
}