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

Enhancement: Allow to order tests by time (duration) #3293

Merged

Conversation

localheinz
Copy link
Collaborator

@localheinz localheinz commented Sep 8, 2018

This PR

  • allows to order tests by time (duration)

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?

/**
* @var int
*/
public const ORDER_TIME = 4;
Copy link
Collaborator Author

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?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ORDER_EXECUTION_TIME maybe?

Copy link
Contributor

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 :)

Copy link
Owner

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!

@localheinz localheinz force-pushed the feature/time branch 3 times, most recently from 250287c to 92bbfb2 Compare September 8, 2018 11:37
@localheinz
Copy link
Collaborator Author

@epdenouden @sebastianbergmann

Shall I update documentation somewhere?

@epdenouden
Copy link
Contributor

@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.

@sebastianbergmann sebastianbergmann merged commit 755c1a8 into sebastianbergmann:master Sep 8, 2018
@localheinz localheinz deleted the feature/time branch September 8, 2018 11:48
@localheinz
Copy link
Collaborator Author

Thank you, @epdenouden and @sebastianbergmann!

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.

None yet

3 participants