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
Perhaps I'm using this framework wrong, but I can't figure out how to display the execution time of each test case correctly.
According to the --help section, the -d switch should display the duration for each test, but that's not the case.
Expected Behavior
When ran with -d or --durations, the framework should display the execution time for each test.
Actual Behavior
The time is only reported for tests that are in a non-global suite.
Furthermore, when displayed, the execution time seems to be wrong. To get higher time reporting precision, I modified the internal print_duration() function to this:
Perhaps I'm using this framework wrong, but I can't figure out how to display the execution time of each test case correctly.
According to the
--help
section, the-d
switch should display the duration for each test, but that's not the case.Expected Behavior
When ran with
-d
or--durations
, the framework should display the execution time for each test.Actual Behavior
The time is only reported for tests that are in a non-global suite.
Steps to Reproduce the Problem
-s -d
command line argumentshttps://godbolt.org/z/d5rfWjhTb
Also note the missing line-endings in the output.
Furthermore, when displayed, the execution time seems to be wrong. To get higher time reporting precision, I modified the internal
print_duration()
function to this:after which I've noticed the reported time was negative, suggesting there is maybe something wrong with the
test_end
events?Specifications
The text was updated successfully, but these errors were encountered: