简体   繁体   中英

Should I use Cucumber for an AngularJS single page application?

I'm fairly new to both Cucumber and Angular. I have a rails application that is a single page application. Should I bother with Cucumber or should I just use AngularJS's e2e testing?

Any insight, comparison and past experience is appreciated!

We use a combination of Cucumber and Jasmine for our Angular application.

Months ago when I initially tried to get Angular's e2e testing framework running , the documentation was pretty limited so we opted for Cucumber - Selenium for the UI tests.

I believe with Angular's e2e framework you can mock calls to backend but if you want to do actual integration testing using Cucumber + Selenium is a decent option.

You should check out Cucumber.js .

If you're looking for a more comprehensive example using Protractor checkout this angular-cucumber-example .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM