microsoft / vscode-java-test

Run and debug Java test cases in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test
Other
298 stars 129 forks source link

Aggregation of Runtimes for a Testclass #1591

Open M3ssman opened 1 year ago

M3ssman commented 1 year ago

Version

0.39.0

Description

When a test class runs independent tests, the testing panel on the left displays the execution times for each test as well as an aggregated sum for the complete test class, which is fine.

When the test class includes a static setup method to create a class fixture, tagged with Unit5's @BeforeAll , the execution for setting up the fixture is not taken into account for the whole class, which still only sums up the execution times for each individual tests. This may lead to some unexpected results, where the test panel displays a test class execution time sum < 1s, whereas the creation of the fixtures already requires > 10s.