UNSUBSCRIBE-STOP
-Original Message-
From: Tibor Digana
Sent: Tuesday, April 13, 2021 2:42 AM
To: Maven Users List
Subject: Re: [maven-failsafe-plugin] run suites in parallel using maven failsafe
WARNING: This email is from outside the DFPS system. Do not click on links or
attachments unless you expect them from the sender and know the content is safe.
There are 3 suites in my example, so set threadCountSuites=3.
On Tue, Apr 13, 2021 at 9:39 AM Tibor Digana wrote:
> Hi,
>
> threadCountSuites is related to JUnit4 Suite, see this:
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith
> ub.com%2Fjunit-team%2Fjunit4%2Fwiki%2FAggregating-tests-in-suites
> data=04%7C01%7CTodd.Moon%40dfps.texas.gov%7Cee8315ecabbd4800ec2808d8fe
> 4f9de6%7C0915ef3812cd4561ab809c7f41bfb31e%7C0%7C0%7C637538965197441000
> %7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6I
> k1haWwiLCJXVCI6Mn0%3D%7C1000sdata=FhISbCz3rBaVORh7DxFcNFd4EAqQCL7
> hxEvDTtqflWw%3Dreserved=0
>
> threadCountClasses is related to the typical classes, see this example:
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith
> ub.com%2Fjunit-team%2Fjunit4%2Fwiki%2FAssertionsdata=04%7C01%7CTo
> dd.Moon%40dfps.texas.gov%7Cee8315ecabbd4800ec2808d8fe4f9de6%7C0915ef38
> 12cd4561ab809c7f41bfb31e%7C0%7C0%7C637538965197441000%7CUnknown%7CTWFp
> bGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn
> 0%3D%7C1000sdata=g0oO0eqzTe2V3rA8mPU9GMVNTP%2FELTOfDJGqTBXNr9w%3D
> reserved=0
>
> Parallel packages do not exist, but you can make the same if you write
> a Suite of Suites, example:
> SuiteMainTest has (SuiteATest, SuiteBTest) where SuiteATest has
> SomeStoryTest, AnotherStoryTest and SuiteBTest has DifferentStoryTest,
> OtherStoryTest and use this configuration parallel=suites,
> threadCountSuites=2, test=SuiteMainTest.
> This would work as you want to.
>
> It would nice to write an example in our documentation. If you want to
> participate in the open source, you can open a pullrequest in GitHub.
>
>
> Cheers
> Tibor
>
> On Mon, Apr 12, 2021 at 8:48 PM V. Mark Lehky
> wrote:
>
>> I am trying to run my tests in parallel, and I have a use-case
>> different from all others that I have been able to find.
>>
>> My tests are laid out pretty straight-forward, something like the
>> following:
>>
>> src/test/java/
>> +-features.areaA
>> | +-SomeStory.java
>> | +-AnotherStory.java
>> | ...
>> +-features.areaB
>> | +-DifferentStory.java
>> | +-OtherStory.java
>> | ...
>> ...
>>
>> The tests are written using serenity-bdd, which is a wrapper for
>> selenium, and the test manager is junit4.
>>
>> Each "area" represents some discreet area of the application under
>> test. Tests within one area cannot run in parallel as they would
>> clobber the data they are using. However, tests between different
>> areas can certainly run in parallel as there are no collisions.
>>
>> I tried to configure my maven-failsafe-plugin according to the
>> documentation (
>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmav
>> en.apache.org%2Fsurefire%2Fmaven-failsafe-plugin%2Fexamples%2Ffork-op
>> tions-and-parallel-execution.htmldata=04%7C01%7CTodd.Moon%40dfps
>> .texas.gov%7Cee8315ecabbd4800ec2808d8fe4f9de6%7C0915ef3812cd4561ab809
>> c7f41bfb31e%7C0%7C0%7C637538965197441000%7CUnknown%7CTWFpbGZsb3d8eyJW
>> IjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000
>> sdata=qnsAGPurAthmrft1nive8SG1aWCmsV5xcDxeVS%2FZcgw%3Dreser
>> ved=0
>> ).
>> Using parallel=suites and any one of threadCount=4,
>> threadCountSuites=4, or useUnlimitedThreads=true, results in only one
>> test being run at a time.
>>
>> Is my understanding of "suites" wrong in the context of Failsafe
>> plugin? Is it possible to parallelize tests so that entire packages
>> are fed into VM threads one at a time, but classes within one package
>> run sequentially?
>>
>> ty
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
NOTICE: There has been a change to my email address. Effective immediately, my
new email address is: todd.m...@dfps.texas.gov.
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org