You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] bug report
[X] feature request
[ ] support request => Please do not submit support request here, instead use [Stack Overflow](https://stackoverflow.com/questions/tagged/nightwatch.js+cucumber)
Current behavior
I am trying out using nightwatch-cucumber for our e2e testing. The website I work for is served in multiple languages. I want to have the capability to run all my e2e scenarios in parallel for multiple languages, so my nightwatch.conf.js is setup with multiple test_settings that run all my e2e scenarios in parallel.
I am using the programmatical execution to start the tests and I am able to pass on additional cucumber options to my tests. Having this setup allows me to pass my required tags to run my scenarios. But as best as I understand, the tags apply to all test_settings I have in my nightwatch.conf.js.
Expected/desired behavior
I am hoping to have tags passed for each test_settings through my nightwatch config?
In summary, if I have a desiredCapability that is running intended tests for English, I want to be able to pass a cucumber tag of @english. And a desiredCapability that is running intended tests for French, I want to be able to pass a cucumber tag of @french to it.
Reproduction of the problem
If I was only using nightwatch I could do something like this (please notice the tag_filter mentioned as yahoo in the test_settings):
But if I was to pass in tag_filter in my nightwatch.conf.js config when I use nightwatch-cucumber the code strips out any tags passed in through test_settings in favor of tags passed as arguments into the nightwatch runner.
What is the motivation / use case for changing the behavior?
Our use case to change this behavior is to allow my tests running in parallel to filter out scenarios based on tags passed in. As I mentioned above, we have around 500 scenarios we run for testing our website. Some of these scenarios are language specific and driven by tags. I want to be able to run test cases for different languages in parallel based on the tags passed in.
I'm submitting a ...
Current behavior
I am trying out using
nightwatch-cucumber
for our e2e testing. The website I work for is served in multiple languages. I want to have the capability to run all my e2e scenarios in parallel for multiple languages, so mynightwatch.conf.js
is setup with multipletest_settings
that run all my e2e scenarios in parallel.I am using the programmatical execution to start the tests and I am able to pass on additional cucumber options to my tests. Having this setup allows me to pass my required tags to run my scenarios. But as best as I understand, the tags apply to all
test_settings
I have in mynightwatch.conf.js
.Expected/desired behavior
I am hoping to have tags passed for each
test_settings
through mynightwatch
config?In summary, if I have a
desiredCapability
that is running intended tests for English, I want to be able to pass a cucumber tag of @english. And adesiredCapability
that is running intended tests for French, I want to be able to pass a cucumber tag of @french to it.Reproduction of the problem
If I was only using
nightwatch
I could do something like this (please notice thetag_filter
mentioned as yahoo in thetest_settings
):Passing in the tags as below works in
nightwatch-cucumber
:But if I was to pass in
tag_filter
in mynightwatch.conf.js
config when I usenightwatch-cucumber
the code strips out any tags passed in throughtest_settings
in favor of tags passed asarguments
into the nightwatch runner.What is the motivation / use case for changing the behavior?
Our use case to change this behavior is to allow my tests running in parallel to filter out scenarios based on tags passed in. As I mentioned above, we have around 500 scenarios we run for testing our website. Some of these scenarios are language specific and driven by tags. I want to be able to run test cases for different languages in parallel based on the tags passed in.
I want to be able to do something like this:
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: