Reputation: 1874
How to run single test in protractor selenium.
describe('Login page', function() {
beforeEach(function() {
browser.ignoreSynchronization = true;
ptor = protractor.getInstance();
});
it('should contain navigation items', function(){
//test case code here
});
it('should login the user successfully', function(){
//test case code here
})
});
I would like to run only single test. I can run it using fit
but I would like to do it from command line and without changing test.
Also how can I run singe test using Grunt?
Upvotes: 1
Views: 2174
Reputation: 473823
You can use --grep
command-line argument:
protractor conf.js --grep="navigation"
Upvotes: 6