temyers / cucumber-jvm-parallel-plugin

Maven plugin to help running Cucumber features in parallel
Apache License 2.0
129 stars 121 forks source link

Execute specific Test through command line #156

Closed si-net closed 6 years ago

si-net commented 6 years ago

Hi,

I successfully integrated the plugin in my application and everything works fine if I execute mvn failsafe:integration-test

Now I wanted to have the possibility to execute only specific Tests (runner classes). So I followed the failsafe documentation and executed mvn -Dit.test=FeatureRunnerTest failsafe:integration-test this executed the specified class as expected, but the cucumber-parallel plugin does not seem to trigger, since I get not json output and the different scenarios in the feature file do not get executed in parallel.

So my question is: is the execution of specific tests/runner classes supported by this plugin? And if so how do I do it?

Thank you, Simon

mpkorstanje commented 6 years ago

This plugin generates runners, and limits the runners created based on cucumber.options. It doesn't actually execute the tests. So you'll have to clean the old runners first.