Should I use a cucumber for a single-page AngularJS application?

I am new to both Cucumber and Angular. I have a rails application, which is a single page application. Do I have to worry about cucumber or do I just need to use AngularJS e2e testing?

Any insight, comparison and past experience is appreciated!

+6
source share
2 answers

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

Months ago, when I initially tried to run the Angular e2e framework, the documentation was pretty limited, so we chose Cucumber - Selenium for user interface tests.

I believe that with the Angular e2e framework you can make fun of calls to the backend, but if you want to do actual integration testing using Cucumber + Selenium, this is a decent option.

+4
source

You should check out Cucumber.js .

If you are looking for a more complete example using the Protractor check, this is an angular-cucumber-example .

+3
source

Source: https://habr.com/ru/post/954208/


All Articles