Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measure test run time duration #426

Closed
wants to merge 0 commits into from
Closed

Conversation

milo
Copy link
Member

@milo milo commented Dec 8, 2020

  • new feature
  • BC break? no

It is a quite hard to measure test run time duration precisly. It is possible from test itself, but things get complicated with @testCase and @provider annotations when collecting/pairing durations back to custom output handler.

I think that this kind of measurement is quite precise and easy to access for OutputHandler.

Time duration is unnecessary most of the time, but it is very useful when reducing total amount of time with higher quantity of tests (100+). For examle, database locks or php.ini tunning (e.g. loading SNMP extension eats hundreds of miliseconds).

@milo
Copy link
Member Author

milo commented Dec 8, 2020

Was thinking about withDuration() method but duration should be known when setting test result.

milo added a commit that referenced this pull request Jan 2, 2021
@milo milo closed this Jan 2, 2021
dg pushed a commit that referenced this pull request Jan 31, 2021
dg pushed a commit that referenced this pull request Feb 5, 2021
dg pushed a commit that referenced this pull request Mar 1, 2021
dg pushed a commit that referenced this pull request Mar 1, 2021
dg pushed a commit that referenced this pull request Mar 1, 2021
@milo milo deleted the test-duration branch July 21, 2022 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant