For my automated junit cucumber tests, the software is started automatically, and queries will run on data that is uploaded to the software after startup. The data loading takes around 12 times longer for the automated cucumber tests compared to when it is loaded in the UI on our main instance.
The tests are run with “mvn clean verify -D[data and licence specifications] -Pcucumber”
I would like to find a way how the data loading is as fast for the cucumber tests as it is in the UI.
I tried the following options without success:
- Increase the number of threads to 16 like it is for the main instance where we experience normal data loading time
- Different location of data to be loaded
- Upgraded maven version to 3.9.5 which is the version on which the loading is done in the expected time on my local device
- Play around with forking in the pom.xml
Thoughts:
- Can it be due to a jacoco plugin?
- Is it the network connection and if yes, how would I debug this?
- Can it be due to the specification of the test profile? When the loading is done in the expected time locally, they run on the “local” profile.
Franziska is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.