-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Enhancement: Allow to order tests by time (duration) #3293
Enhancement: Allow to order tests by time (duration) #3293
Conversation
586856a
to
7843b24
Compare
src/Runner/TestSuiteSorter.php
Outdated
/** | ||
* @var int | ||
*/ | ||
public const ORDER_TIME = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rename this to ORDER_DURATION
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ORDER_EXECUTION_TIME
maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, DURATION
would be nicer as the word time also pops up in e.g. START_TIME
and END_TIME
. Just a small thing :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ORDER_DURATION
it is then :-) Thanks!
250287c
to
92bbfb2
Compare
92bbfb2
to
9dbcf9e
Compare
@epdenouden @sebastianbergmann Shall I update documentation somewhere? |
@localheinz The documentation needs a good look re: the execution order changes anyway. I didn't add documentation for my stuff yet, apologies. Only recently got the documentation generator running here. |
Thank you, @epdenouden and @sebastianbergmann! |
This PR
Fixes #3284.
πββοΈ Hope I'm not stepping on anyone's toes. Not sure, maybe I should add more test cases, what do you think, @epdenouden?