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

Refactor Needed for "Run Separately" Method (JUnit 5) #24

Open
luoos opened this issue Dec 13, 2020 · 0 comments
Open

Refactor Needed for "Run Separately" Method (JUnit 5) #24

luoos opened this issue Dec 13, 2020 · 0 comments

Comments

@luoos
Copy link
Contributor

luoos commented Dec 13, 2020

To gain full control of test execution order, the current implementation is to run test "separately". There are at least two drawbacks of this method:

  1. @BeforAll/@AfterAll method will execute multiple times. This violates the intention of it, i.e., that method should only run once for all tests in the same test class. And it could lead to some unexpected results.
  2. It brings some performance overhead. But this issue is minor.
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

No branches or pull requests

1 participant