Giter Club home page Giter Club logo

angular-phonecat's Introduction

angular-phonecat

Circle CI

This project demonstrates how to run all the tests for the standard AngularJS “Phone Catalog” tutorial on CircleCI.

See the tutorial for detailed instructions on the application itself.

##Running locally You will need to have npm, nodejs, and bower installed in order to work with the project. To run the unit tests once just run npm run test-single-run. To run the e2e tests, run npm start, and then npm run protractor in a different shell.

##Testing on CircleCI Simply sign up for CircleCI if you haven’t already, fork the repo, and follow it on circle to see what continuous integration with Karma and Protractor looks like on Circle. While Circle can infer most of the installation and test process from the project structure, there are a couple of specific steps that must be configured in the circle.yml file:

  • Node.js must be version 0.10+ for the project to work correctly
  • The standard npm test command is a long running process, so npm run test-single-run must be run instead
  • To run the protractor tests, a server must be started in the background using npm start, and then protractor run with npm run protractor

##A note on animations One tweak has been made to the project itself in this repo, which is the disabling of Angular animations. Protractor is generally very good about coordinating with Angular to make sure all Angular actions are done—including animations—before moving on. However, the “waitForAngular” functionality still isn’t perfect (see this Protractor issue for more discussion), and the extra delays introduced by animations seem to contribute to flakier (as well as slower) tests. To keep the tests faster and more reliable, this sample project has disabled Angular animations with the “allowAnimations” Protractor API.

##See Also

angular-phonecat's People

Contributors

igorminar avatar petebacondarwin avatar jeffbcross avatar ngdashboard avatar vojtajina avatar btford avatar juliemr avatar michaelneale avatar mhevery avatar tbosch avatar bellkev avatar elnur avatar smather avatar shaohua avatar houfeng0923 avatar ermakovich avatar bkbkcircle avatar fuentesjr avatar philspitler avatar segeda avatar marcenuc avatar lfender6445 avatar wislon avatar rolaveric avatar jksdua avatar iszak avatar ifedotov avatar doron2402 avatar dmitriz avatar djebbz avatar

Watchers

James Cloos avatar Akhilesh verma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.