daniellmb / angular-test-patterns

A High-Quality Guide for Testing Angular 1.x
MIT License
867 stars 101 forks source link

Acceptance / Cucumberjs Tests? #18

Open JimLynchCodes opened 8 years ago

JimLynchCodes commented 8 years ago

Hi. First let me say, WOW. This is an awesome guide that gives clear examples for pretty much all things you could do in unit testing for AngularJS.

At my current job we are also using what we call "acceptance tests". These use protractor, but in the protractor.conf file for framework we choose 'protractor-cucumber-framework'. They are executed through the command line like any other protractor.conf.js file. This will allow you to write .feature files in Gherkin language and then implement them in low-level step definition methods. These tests are not really e2e tests that touch external things but are more just your standard selenium web tests that check basic operational functionality in the application.

So you might consider adding that to your list of tests since it is a difference type of automating testing and is really awesome and useful in itself.

daniellmb commented 8 years ago

I'm glad to hear you found this resource useful. That's a neat idea, I'll look into what it would take to integrate something like that.