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
They both contain 2 tests each that currently only print out the name of the test.
If I select TestFive to run on its own by pressing the Run Test or Debug Test, it will run TestFive but also TestSeven and TestEight from the other FeatureFile.
The only test it does not run is the other test within the same FeatureFile.
If I add another simple test to FeatureOne and run a single Test, it will ignore the tests within the same FeatureFile
I tracked down your problem to be the same mentioned in #1.
More precisely the problem lies in how cucumber-cli handles arguments from the command line and your configuration file.
To solve the problem I suggest creating 2 profiles in your cucumber.js file one called default used by the runner (in the future I'll allow you to select a profile name from the extension) and one named as you prefer to run the test directly from terminal.
The following is an example you can use to change your cucumber.js file:
Hi @Balrog994 ,
Yes you are correct.
I created the profiles as suggested in the cucumber.js file and it does indeed only run one of the tests now within Test Explorer
For the command line, I added in the -p cli to the script to run or else it defaults back to default.
Thanks
Hi,
I have two feature files as an example
They both contain 2 tests each that currently only print out the name of the test.
If I select TestFive to run on its own by pressing the Run Test or Debug Test, it will run TestFive but also TestSeven and TestEight from the other FeatureFile.
The only test it does not run is the other test within the same FeatureFile.
If I add another simple test to FeatureOne and run a single Test, it will ignore the tests within the same FeatureFile
My cucumber.js file is as follows
module.exports = {
default: {
parallel: 1,
retry:0,
format: ['html:cucumber-report.html'],
paths:['journeys///.feature'],
require:['features/support/.js'],
publishQuiet: true
}
}
The text was updated successfully, but these errors were encountered: