Should I use Cucumber for an AngularJS single page application?
Asked Answered
A

2

6

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!

Afroasiatic answered 19/9, 2013 at 23:45 Comment(0)
M
4

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.

Moonscape answered 19/9, 2013 at 23:50 Comment(1)
is Cucumber still the best option for e2e with angular?Domesticity
R
3

You should check out Cucumber.js.

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

Regina answered 13/1, 2014 at 13:56 Comment(1)
This is a top search result, too, so the options appears popular.Pasco

© 2022 - 2024 — McMap. All rights reserved.