Run native tests without running tests on JVM first - #765
Conversation
05b4dbd to
23494be
Compare
|
|
||
| public abstract class AgentUtils { | ||
|
|
||
| private static final String STANDARD = "standard"; |
There was a problem hiding this comment.
Changes in this file are not related to the original purpose of this PR. This is just a small clean-up triggered by some changes in Utils.java class.
|
Currently, the tests are failing because there are different number of discovered tests with and without This only happens if the tests are annotated with annotations like Test ids discovered with dry-run: |
|
|
@sbrannen can we somehow extend I see that If that idea is not possible to achieve for some reason, do you have some other proposal? |
|
@jormundur00 will take this ticket over. |
e831037 to
9c4086b
Compare
|
Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application. When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated. If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public. |
Problem: At the moment, every time we run native tests (with both Maven or Gradle), we must run tests on JVM first, in order to collect
test-idsrequired for native run. With more complex tests, this additional step increases time required for tests execution.Idea: We should use JUnit's dry-run mode to just collect
test-idswithout executing tests on JVM.Solution: we can set
junit.platform.execution.dryRun.enabledsystem property to true when executing tests on JVM (maven change, gradle change).NOTE: Since this approach changes the default behavior, we should bump major version for the next release.