Closed thejohnfreeman closed 6 years ago
Hi @thejohnfreeman,
I have never tried this but in theory every junit-dataprovider test is a separate FrameworkMethod
. This means if Gradle is parallelizing on this level, it should run out-of-the-box. I will try to reproduce this within the next days. Or is it somehow urgent?
Cheers, Andreas
Not urgent. Thanks!
Any update about this issue?
Hi @gaponte1985, thanks for the reminder. Currently my real spare time is a bit little but I will try to look at it as soon as possible ...
Thanks for the updated.
still working onm it?
Hi @gaponte1985,
sorry for the long delay. I tried to parallelize the integration tests on junit-dataprovider itself using test.maxParallelForks = 4
(see https://docs.gradle.org/3.0/dsl/org.gradle.api.tasks.testing.Test.html#org.gradle.api.tasks.testing.Test:maxParallelForks for details). And as I just use a normal runner as everybody else it should work. Also multiple threads are forked, though the tests are outputted in order ...
Can you try it and give feedback with a bigger test suite?
I dont get this one, can you please explain?
Hi @gaponte1985,
I used https://github.com/TNG/junit-dataprovider/blob/master/build.gradle and added test.maxParallelForks = 4
(see documentation on https://docs.gradle.org/3.0/dsl/org.gradle.api.tasks.testing.Test.html#org.gradle.api.tasks.testing.Test:maxParallelForks).
Running gradle build
using above changed build.gradle
everything worked and tests are executed using multiple forked threads.
Can you try it and give feedback with your test suite?
Hi @gaponte1985, is this still an isssue or could you resolve it? Otherwise, how can I still help? Cheers, Andreas
Hi @thejohnfreeman, looking at your issue now, you wanted to know if you can parallelize the dataprovider tests inherited from one single dataprovider for a single test method, right? Cheers, Andreas
Closing this because of no further response from issue creator and other participants such that I cannot help any further. Please don't hesitate to reopen and provide any further information or details.
Gradle cannot run JUnit
@Parameterized
tests in parallel, but TestNG has aparallel
Boolean parameter on the@DataProvider
annotation. Can Gradle run the junit-dataprovider tests in parallel?