Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run angular end-to-end tests in watch mode

Currently, I run ng e2e every time I make a change in my spec files and every time this command rebuilds the entire project ! is there a way to run the tests without rebuilding the entire project, just like ng test does it.

like image 787
Rachid O Avatar asked May 26 '17 13:05

Rachid O


People also ask

Why Protractor is deprecated?

Why is Protractor being deprecated? Protractor was created in 2013. During that time WebDriver APIs were not yet standard, because of which testers and developers faced difficulties in writing end to end tests as there was very little support for async/await.

Is Cypress better than Protractor?

Cypress is the easier and more reliable tool, whereas Protractor is the more powerful tool. Your choice of tool should depend on your specific testing needs.


1 Answers

Just don't run ng e2e directly. It's very slow because it rebuild the whole project every time.

You can try npx protractor e2e/protractor.conf.js to run protractor directly.

like image 146
Will Huang Avatar answered Sep 28 '22 06:09

Will Huang