Skip to content

Commit

Permalink
Improve JUnitTestCaseTimeAdderTest (#1312)
Browse files Browse the repository at this point in the history
* Improve JUnitTestCaseTimeAdderTest

* Add a workaround for SIGSEGV in InitialTestsRunnerTest
  • Loading branch information
sanmai committed Aug 25, 2020
1 parent 75fa6b1 commit d6c80c9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,18 @@ public function test_it_ignores_tests_without_valid_suite_name(): void
'/path/to/test-file-1',
0.000234
),
new TestLocation(
'Test::testMethod1',
'/path/to/test-file-1',
10.0
),
];

$adder = new JUnitTestCaseTimeAdder($coverageTestCases);

$total = $adder->getTotalTestTime();

$this->assertSame(0.0, $total);
$this->assertSame(10.0, $total);
}

public function test_it_returns_sum_for_uniqued_test_cases(): void
Expand Down

0 comments on commit d6c80c9

Please sign in to comment.