Serenity BDD using forkCount of maven-failsafe-plugin

410 views
Skip to first unread message

David

unread,
Feb 3, 2016, 11:39:58 AM2/3/16
to Serenity BDD Users Group
Hello, 

I trying to run multiple test in parallel with serenity and the maven-failsafe-plugin.

I configure the plugin to fork the VM (because I use a spring context that I don't want to be shared between features)

the execution seems ok but the serenity report, after the aggregation, give a new result. Less tests are counted.

I think that the issue is than the aggregation count only the number of test of a fork execution, and not from the whole execution. (Even if the aggregation is run after the build, using serenity:aggregate)


Is Serenity BDD is build to be used in a forked JVM mode ? Or can be used only with parallel execution based on multiple thread ? 

Regards



David

unread,
Feb 15, 2016, 9:51:13 AM2/15/16
to Serenity BDD Users Group
anyone try this ? 

I'm the only to try to perform parallel tests using a JVM fork. Do you only use thread parallelism for your tests ? 

Regards

John Ferguson SmartSmart

unread,
Feb 16, 2016, 2:39:08 AM2/16/16
to David, Serenity BDD Users Group
Parallel testing is tricky. I’m writing up an article on a number of different options around parallel testing with Serenity at the moment. This is a configuration in a project I have on hand, using both forks and thread, and works correctly for 4-6 concurrent browsers:

<parallel>classes</parallel>
<threadCount>4</threadCount>
<forkCount>4</forkCount>
Cheers
John.
___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7497151337
Making smart teams collaborate better
http://www.wakaleo.com  |  john....@wakaleo.com
___________________________________________________

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David

unread,
Feb 18, 2016, 10:46:06 AM2/18/16
to Serenity BDD Users Group, david.wu...@gmail.com
Thanks for your reply.

So if I configure my job to run my tests using the fork mode of failsafe, it _should_ work ?
My question, in fact is : Is serenity is build to run in a fork mode ? 

My last test using our project create a report too different from a non parallel execution. Lot of test marked as pending. I expected to got lot of tests in error instead, as our tests may have some cucrrency issue. But as I got a lot of test in pending in the report, I tend to think that it may a bug in the Serenity reporting (or aggregation ?)

Regards
Reply all
Reply to author
Forward
0 new messages