Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing #9

Open
artitudinale1 opened this issue May 20, 2016 · 1 comment
Open

Testing #9

artitudinale1 opened this issue May 20, 2016 · 1 comment

Comments

@artitudinale1
Copy link
Collaborator

artitudinale1 commented May 20, 2016

Requires #13 to be implemented first.

Start write Unit Test for app.
Some ideas:
https://www.sitepoint.com/unit-and-e2e-testing-in-angularjs/

Never actually done it before :P so any suggestions is welcome

@artitudinale1
Copy link
Collaborator Author

artitudinale1 commented May 29, 2016

Good resource on testing http://andyshora.com/unit-testing-best-practices-angularjs.html

So we will need to implement Unit and e2e tests:

Installation/Configuration UNIT TEST

  • Install Karma
  • 'karma-chrome-launcher',
  • karma-firefox-launcher',
  • 'karma-phantomjs-launcher',
  • 'karma-jasmine',
  • 'karma-jasmine-html-reporter'
  • karma.config.js - set up
  • add bower_components/angular-mocks/*.js' - to mock back end in unit test
  • start writing test for each unit of the app

Installation/Configuration E2E TEST
As Karma site suggest http://karma-runner.github.io/0.13/intro/faq.html

  • Install Protactor
  • protactor.config.js set up
  • start writing Scenario / Test .js

@artitudinale1 artitudinale1 removed this from the Beta Launch milestone Jun 14, 2016
@artitudinale1 artitudinale1 added this to the Test milestone Jun 15, 2016
@artitudinale1 artitudinale1 changed the title JS - Unit Test Testing Jun 15, 2016
This was referenced Jun 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant