File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/java/de/donnerbart/split Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -107,16 +107,16 @@ public TestSplit(
107107 if (classNames .contains (testCase .name ())) {
108108 if (testCases .add (testCase )) {
109109 LOG .debug ("Adding test {} [{}]" , testCase .name (), formatTime (testCase .time ()));
110+ if (testCase .time () < fastestTest .time ()) {
111+ fastestTest = testCase ;
112+ }
113+ if (testCase .time () > slowestTest .time ()) {
114+ slowestTest = testCase ;
115+ }
110116 }
111117 } else {
112118 LOG .info ("Skipping test {} from JUnit report" , testCase .name ());
113119 }
114- if (testCase .time () < fastestTest .time ()) {
115- fastestTest = testCase ;
116- }
117- if (testCase .time () > slowestTest .time ()) {
118- slowestTest = testCase ;
119- }
120120 }
121121 LOG .debug ("Found {} recorded test classes with time information" , testCases .size ());
122122 LOG .debug ("Fastest test class: {} ({})" , fastestTest .name (), formatTime (fastestTest .time ()));
You can’t perform that action at this time.
0 commit comments