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!

kenttam
  • 740
  • 4
  • 9

2 Answers2

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.

smk
  • 5,340
  • 5
  • 27
  • 41
3

You should check out Cucumber.js.

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

Matt Richards
  • 1,477
  • 2
  • 14
  • 21