for file in *; do
echo "$file"
fileName=$file #echo "$fileName"
gradle build -Pear=$fileName -Phost=localhost -Pport=8080
done
Lets say gradle build command is executed 5 times. Each time it executes specific tests based on the fileName. Now I want test reports for all the 5 runs to be aggregated into one but it actually overwrites the previous report.
Now I want test reports for all the 5 runs to be aggregated into one but it actually overwrites the previous report.
Why do you want to run gradle 5 times?
Gradle has ability to execute tests on multi JVM processes, and their reports can be summarized.
Please check document on Test.
Test task has property maxParallelForks, which determines the number of processes to execute tests. If you set 5 to its value, tests can be executed in 5 parallel processes.
Thanks for your prompt reply. But i t is my requirement to run gradle build multiple times so that each time it picks up a specfic test case based on my test scenario.
I see that in build–>reports–>tests folder there are individual test run html files but the index.html shows just the report for the last run test case and not the aggregate of all runs.