Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agustinhaller/f66902498ede13c20e47 to your computer and use it in GitHub Desktop.
Save agustinhaller/f66902498ede13c20e47 to your computer and use it in GitHub Desktop.
# Prerequisites
- Fisrt install protractor following this tutorial: https://github.com/angular/protractor/blob/master/docs/tutorial.md
- Then follow this tutorial to get things going: http://www.yearofmoo.com/2013/01/full-spectrum-testing-with-angularjs-and-karma.html
- After installing protractor, we configure Grunt. For that we have to do the following:
- npm install
- grunt
- And if we want to run the test, just run: grunt test (o grunt test:midway)
# How and what to test?
# Testing Modules (http://goo.gl/P706hc)
- testing goal?
- To test to see that the module is there and it works.
- To check to see if the dependencies are set for the module.
-
- Follow this tutorial: http://phpunit.de/getting-started.html
# How to test?
- After installing phpunit using composer we can check the instalation running this command: vendor/bin/phpunit --version
- Then we can create the tests (see: http://phpunit.de/manual/current/en/writing-tests-for-phpunit.html)
- To run the test we just created, just run this command: vendor/bin/phpunit --bootstrap vendor/autoload.php test/backend/CategoryTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment