Repository navigation
Issue #3462 TestNG extension onStart/onFinish called too many times - #3470
Conversation
β¦imes Signed-off-by: Olivier Lamy <olamy@apache.org>
|
With this PR, I get the below output. I would still say that's "too many times" |
|
Thanks for testing! So 1 isn't reachable from Surefire alone. Surefire still discovers once more than it needs to during the class scan, though, and if possible, I'll look at getting that down to 2. |
|
Thanks for the explanation, and the Meanwhile, 2 calls from Surefire (one discovery + one execution) is a reasonable interim state, and this PR is a clear improvement over 4. |
Signed-off-by: Olivier Lamy <olamy@apache.org>
|
Thanks for testing! I pushed a change so the class scan no longer asks the TestNG engine, which brings it down to 2. The remaining extra call is the testng-engine's dry run during discovery (source). The JUnit Platform is always discovered before execution, so Surefire can't avoid it. |
|
Confirmed. Only called 2 times with the PR in it's current state.
|
|
@olamy Please assign appropriate label to PR according to the type of change. |
Signed-off-by: Olivier Lamy olamy@apache.org
Following this checklist to help us incorporate your
contribution quickly and easily:
mvn clean installto make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
mvn -Prun-its clean install).If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.