Skip to content

Running tests in certain order #884

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

Closed
noopur2507 opened this issue Jun 12, 2017 · 2 comments
Closed

Running tests in certain order #884

noopur2507 opened this issue Jun 12, 2017 · 2 comments

Comments

@noopur2507
Copy link

I do not see any equivalent of the JUnit 4 method org.junit.runner.Request.sortWith(Comparator<Description> comparator) in JUnit 5 M4, which can be used to run the tests in a certain order, defined by the comparator.

Is it planned to provide such support or can it be done in some other way?

Eclipse uses this to rerun a test with failures first, which has been disabled for JUnit 5: bug 518052.

@sormuras
Copy link
Member

Related issue: #111 (and #90)

@sbrannen
Copy link
Member

Hi @noopur2507,

At the moment there is currently no mechanism for ordering the execution of tests.

Once #48 is addressed this will likely change since ordering is a requirement of scenario tests. Having said that, however, that support may only exist within JUnit Jupiter instead of the Platform proper.

I am therefore going to reopen #13 and am closing this issue as a duplicate of #13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants