What command can I use to start specific e2e test case from test suite?
If this is not possible - running specific test suite may be some workaround.
I use Jasmine, Karma and Protractor. I start my tests with command
npm run e2e
which is defined in package.json
"e2e": "protractor protractor.config.js"
I can redefine this task (or create new one)
"e2e-s": "protractor protractor.config.js --specs ./app/dashboard/e2e-spec.js"
But I'd like to perform this from command line.
You can propagate arguments to the npm script via the --
:
npm run e2e -- --specs path/to/spec
Make sure you have the latest npm
installed.
You can also focus tests with fdescribe
/ddescribe
in Jasmine and describe.only
in Mocha.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With