Last active
August 29, 2015 14:04
-
-
Save agustinhaller/f66902498ede13c20e47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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