Skip to content

Commit

Permalink
Configured realtime tests to run parallely by class names
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Mar 4, 2024
1 parent 6a739ec commit 2a7d8f8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.experimental.ParallelComputer;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -44,9 +45,10 @@ public static void tearDownAfterClass() throws Exception {
}

public static void main(String[] args) {
Result result = JUnitCore.runClasses(RealtimeSuite.class);
Result result = JUnitCore.runClasses(ParallelComputer.classes(),
RealtimeSuite.class);
for(Failure failure : result.getFailures()) {
System.out.println(failure.toString());
System.out.println("Failed :: "+ failure.toString());
}
}
}

0 comments on commit 2a7d8f8

Please sign in to comment.