Details
-
Suggestion
-
Resolution: Won't Fix
-
None
-
None
Description
In reports lots of tests have duration = 0. This is because unit tests are fast and the System.currentTimeMillis() is used to record start and end time of a test. Which is not precise by design.
We could increase precision to nanoseconds using System.nanoTime().
Note: we'd still need to call System.currentTimeMillis() to record datetime when test was run.