Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2014-03-31 00:54:27 +0400
committerThomas Steur <tsteur@users.noreply.github.com>2014-03-31 00:54:27 +0400
commit2db6577f0a955f595125110f05d3b7c941a9d7c0 (patch)
treef8269f56299bd38106127b69ee5f452ed73b4758 /tests/angularjs
parentb71a23799732c1b56d70eea475383373a46624f2 (diff)
Update README.md
Diffstat (limited to 'tests/angularjs')
-rw-r--r--tests/angularjs/README.md35
1 files changed, 23 insertions, 12 deletions
diff --git a/tests/angularjs/README.md b/tests/angularjs/README.md
index e49f9decd8..edcd91f452 100644
--- a/tests/angularjs/README.md
+++ b/tests/angularjs/README.md
@@ -1,27 +1,38 @@
## Installation:
-npm install .
+`[sudo] npm install .`
-### Ubuntu
+#### Ubuntu
On Ubuntu you might be able to use the `scripts/install-ubuntu.sh` script. Have a [look](https://github.com/piwik/piwik/blob/master/tests/angularjs/install-ubuntu.sh) and give it a try
-## Used libs
-MochaJS + Chai
+#### Requirements
+* node.js > 0.10
+* npm
+
+## Used libraries
+* [Karma](http://karma-runner.github.io/0.12/index.html)
+* [Chai](http://chaijs.com/guide/styles/)
+* [Mocha](http://visionmedia.github.io/mocha/)
+* You need more assertions? Have a look at [Chai plugins](http://chaijs.com/plugins)
## Execution
-Run tests (it runs tests automatically again once there is a file change)
+Run tests and run them automatically again once there is a file change:
`karma start karma.conf.js`
-It runs the tests in PhantomJS at the moment. If you want to run it in different browsers
-just change the `browsers: ['Chrome', 'Firefox', 'PhantomJS']` property in `karma.conf.js`
+Run test suites only once:
+`karma start karma.conf.js --single-run`
+
+Run test suites in a different browser:
+`karma start karma.conf.js --browsers Chrome`
+
+Run tests in different browser permanently:
+You can change the `browsers: ['Chrome', 'Firefox', 'PhantomJS']` property in `karma.conf.js` but you might have to be careful to not commit this change.
## Testing existing jQuery code
TBD
-## Help
-
-* [Chai](http://chaijs.com/guide/styles/)
-* [Mocha](http://visionmedia.github.io/mocha/)
-* You need more assertions? Have a look at [Chai plugins](http://chaijs.com/plugins)
+## Examples
+* [Testing a filter](plugins/CoreHome/angularjs/common/filters/startfrom_test.js)
+* See more examples in [AngularJS guide](http://docs.angularjs.org/guide/unit-testing)