Reputation: 2955
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.
Upvotes: 8
Views: 7049
Reputation: 473873
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.
Upvotes: 14