You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,30 +69,44 @@ Check out the [Getting Started](https://github.com/angular-ui/ng-grid/wiki/Getti
69
69
70
70
The testing setup is based on the [angular-seed project](https://github.com/angular/angular-seed/).
71
71
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).
73
73
74
74
### Grunt tasks
75
75
76
76
There are a few grunt tasks for running tests:
77
77
78
78
# Run unit tests
79
79
> grunt karma:unit
80
+
# Or use this alias:
81
+
> grunt test
80
82
81
83
# Run end-to-end tests (make sure to first start a web server as specified below)
82
84
> grunt karma:e2e
83
85
84
86
# Run midway tests
85
87
> grunt karma:midway
86
88
87
-
# Also here's a simple alias for running the karma:unit task:
88
-
> grunt test
89
-
90
89
### End-to-end tests
91
90
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:
93
92
94
93
> ./scripts/web-server.js
95
94
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.
0 commit comments