Skip to content

Commit 178bd27

Browse files
committed
Updating testing docs
Added automated testing documentation; documentation for CI testing
1 parent bc75907 commit 178bd27

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,30 +69,44 @@ Check out the [Getting Started](https://github.com/angular-ui/ng-grid/wiki/Getti
6969

7070
The testing setup is based on the [angular-seed project](https://github.com/angular/angular-seed/).
7171

72-
Make sure to set your CHROME_BIN environment variable to the pull path to chrome.exe (not just its directory).
72+
Make sure to set your CHROME_BIN environment variable to the full path to chrome.exe (not just its directory).
7373

7474
### Grunt tasks
7575

7676
There are a few grunt tasks for running tests:
7777

7878
# Run unit tests
7979
> grunt karma:unit
80+
# Or use this alias:
81+
> grunt test
8082

8183
# Run end-to-end tests (make sure to first start a web server as specified below)
8284
> grunt karma:e2e
8385

8486
# Run midway tests
8587
> grunt karma:midway
8688

87-
# Also here's a simple alias for running the karma:unit task:
88-
> grunt test
89-
9089
### End-to-end tests
9190

92-
The e2e tests need a webserver to run on. A simple one from the angular-seed project is included:
91+
The e2e tests need a webserver to run. A simple one from the angular-seed project is included:
9392

9493
> ./scripts/web-server.js
9594

95+
### Automated testing and building
96+
97+
Running this task will automatically rebuild `build/ng-grid.debug.js` when source files change, and run unit tests when `build/ng-grid.debug.js` or unit test files change. Youc an use this for testing during development.
98+
99+
# Run this in its own window
100+
> grunt testwatch
101+
102+
### Integration testing
103+
104+
There is a task for CI testing with PhantomJS
105+
106+
1. Make sure the PHANTOMJS_BIN environment variable is set properly
107+
2. PhantomJS with the singleRun option doesn't appear to function properly in Windows. The tests will run but PhantomJS will not automatically close.
108+
109+
> grunt karma:ci
96110
97111

98112
## Change Log

0 commit comments

Comments
 (0)