Open sherish2021 opened 2 years ago
Parallel execution of classes via surefire or failsafe doesn't work with junit 5 - you need to use junit 4 for that.
Thanks @wakaleo for the response, much appreciated - anywhere I can source the junit4 pom config required for Serenity to get the parallel execution running?
Are there future plans to get the parallel execution working with junit5?
I'll update an example in the coming weeks. The issue is a junit thing, not a Serenity thing.
hi @wakaleo, could you share any working parallel running pom example?
or could you update serenity-cucumber-starter
pom.xml to run features in parallel?
thanks in advance! :)
It can work running JUnit 4 separate runner files. Parallel execution doesn't seem to work in JUnit 5 as yet.
Hi,
I am currently working with the Serenity-cucumber-starter repo and have added a few features which I am looking to test the parallel execution functionality for. I am following the config steps detailed here:
https://johnfergusonsmart.com/parallel-test-execution-with-cucumber-and-serenity-bdd/
However the parallel execution feature does not seem to be working, it just fires off each test and feature sequentially? I would expect with this config working as expecting it is creating multiple browser instances in parallel to decrease execution times.
Is there some additional I am missing here or a current known issue?
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">