strongbox / strongbox

Strongbox is an artifact repository manager.
https://strongbox.github.io/
Apache License 2.0
610 stars 617 forks source link

Make the strongbox-web-core's tests work in parallel #949

Open carlspring opened 5 years ago

carlspring commented 5 years ago

The test cases in this module are taking quite a long time, as they're all running consecutively.

With our upgrade of JUnit to JUnit5 (handled by @ptirador in #871), we now have the means to further fine-tune the parallelization of our tests.

The current time to build, including the integration tests (before the refactoring):

[INFO] Strongbox: Web Core ................................ SUCCESS [02:24 min]

Requirements

Notes

This task is a sub-task of #839. For reference of how things should be done, you can have a look at #936.

carlspring commented 5 years ago

@ptirador : Would you like to take the part regarding the web form tests?

ptirador commented 5 years ago

@carlspring: Yes, I'll take them. BTW, great work with the test list!

carlspring commented 5 years ago

Thanks! :)

Feel free to pick any other tests, if you want to.

carlspring commented 5 years ago

@fuss86:

Do we need these tests and are they ever enabled:

Would you mind reminding me how these worked and whether we disabled them...? (I remember we agreeded to drop the Maven Indexer support, apart from the generation of packed Maven Indexes).

Thanks! :)

carlspring commented 5 years ago

Note: Issue #957 is required to be resolved for some of the remaining tests to be finished.

fuss86 commented 5 years ago

MavenArtifactIndexControllerTest is disabled by default. You can run it using command:

mvn test -pl strongbox-web-core -Dtest=MavenArtifactIndexControllerTest -Dmaven.indexer.enabled=true

or by adding this line <maven.indexer.enabled>true</maven.indexer.enabled> to the strongbox-web-core/pom.xml in the maven-surefire-plugin area.

I see it needs some adjustments to work now.

We disabled this test when we decided to disable maven indexer support (in the currently implemented form). See SB-1103 for reference.

MavenSearchControllerTest has 2 tests and testIndexSearches is disabled by default under the same conditions as explained above.

carlspring commented 5 years ago

@fuss86 : Thanks for reminding me about this! I don't think we need to do anything about these tests then.