You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did a small analysis on NestedExampleTest output for timing
When running the tests in IntelliJ this was the outcome:
As we can see, the times are quite similar to what classResults prints to us. But there is one small catch, let's compare both directly in some kind of a table:
As we can see, IntelliJ prints everything as expected but then the plugin does some weird thing while printing NestedSample.InnerTest (class) timing. But the tests timings are correct (from testResult)
I also noticed that the timing is the same as NestedSample.FirstInnerTest (class) and it could be that something got overwritten so I ran it again, but now changing its Thread.sleep to 600ms
After running the test it's possible to see the assumption was true.
[INFO] ├─ Nested Sample - 2.165 s
[INFO] │ ├─ ✔ Should pass - 0.113 s
[INFO] │ └─ ✔ Should pass2 - 0.507 s
[INFO] ├─ ┬─ Nested Sample Inner Test - 0.604 s
[INFO] │ │ └─ ✔ Inner test should pass - 0.202 s
[INFO] │ └─ ┬─ Nested Sample Inner Test Inner Inner Test - 0.929 s
[INFO] │ │ └─ ✔ Inner Inner Test should pass - 0.304 s
[INFO] │ └─ ┬─ Nested Sample Inner Test Inner Inner Test Inner Inner Inner Test - 0.720 s
[INFO] │ │ └─ ✔ Inner Inner Inner Test should pass - 0.402 s
[INFO] ├─ ── Nested Sample First Inner Test - 0.604 s
[INFO] │ └─ ✔ FirstInnerTest should show up - 0.602 s
As we can see, it's classResults.get(treeLength) points to NestedSample.FirstInnerTest (class), which king of makes sense (?) since they both have the same treeLength. But the output is wrong.
The text was updated successfully, but these errors were encountered:
I did a small analysis on NestedExampleTest output for timing
When running the tests in IntelliJ this was the outcome:
As we can see, the times are quite similar to what
classResults
prints to us. But there is one small catch, let's compare both directly in some kind of a table:As we can see, IntelliJ prints everything as expected but then the plugin does some weird thing while printing
NestedSample.InnerTest (class)
timing. But the tests timings are correct (fromtestResult
)I also noticed that the timing is the same as
NestedSample.FirstInnerTest (class)
and it could be that something got overwritten so I ran it again, but now changing its Thread.sleep to 600msAfter running the test it's possible to see the assumption was true.
As we can see, it's
classResults.get(treeLength)
points toNestedSample.FirstInnerTest (class)
, which king of makes sense (?) since they both have the sametreeLength
. But the output is wrong.The text was updated successfully, but these errors were encountered: