Giter VIP home page Giter VIP logo

e2e-angular-knockout's Introduction

End-to-End testing a Single Page Application using Angular or Knockout

An implementation of the same SPA in both AngularJS and KnockoutJS (with CrossroadsJS and RequireJS), with a suite of end-to-end tests in both solutions.

###Introduction This is a follow-up project from my Angular-vs-Knockout project. Here, I have implemented a suite of end-to-end tests in both projects, using a mocked server to improve the robustness of the tests.

The accompanying blog post is here: End-to-end testing with Angular and Knockout

###Installation

From both the AngularFrontEnd and KnockoutFrontEnd folders:

npm install

###Start the servers

Use node to run the back-end server:

call node NodeBackEnd\index.js

Use the node http server to host the web site locally:

call http-server AngularFrontEnd\app –p 8082 -o -c-1
call http-server KnockoutFrontEnd\src –p 8081 -o -c-1

###Run the end-to-end tests

####For the Angular project

Run the unit tests from the AngularFrontEnd folder:

Protractor test/protractor-conf.js

####For the Knockout project

Install jasmine-node:

npm install jasmine-node -g

Install the Chrome Driver for Selenium, and add ChromeDriver to you PATH:

SET PATH=%PATH%;C:\....\npm\node_modules\chromedriver\lib\chromedriver

Run the unit tests from the KnockoutFrontEnd folder:

jasmine-node test/e2e/ --captureExceptions

e2e-angular-knockout's People

Watchers

 avatar  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.