File tree Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 3
3
@name Developer Guide: E2E Testing
4
4
@description
5
5
6
- **If you're starting a new Angular project, you may want to look into
7
- using {@link https://github.com/angular/protractor Protractor}, as it is going to
8
- replace the current method of E2E Testing in the near future.**
6
+ **Angular Scenario Runner is in maintenance mode - If you're starting a new Angular project,
7
+ consider using {@link https://github.com/angular/protractor Protractor}.**
8
+
9
+
9
10
10
11
As applications grow in size and complexity, it becomes unrealistic to rely on manual testing to
11
12
verify the correctness of new features, catch bugs and notice regressions.
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ made available a local web server based on Node.js.
135
135
136
136
## Running the Unit Test Suite
137
137
138
- We write unit and integration tests with Jasmine and execute them with Karma. To run all of the
138
+ We write unit tests with Jasmine and execute them with Karma. To run all of the
139
139
tests once on Chrome run:
140
140
141
141
```shell
@@ -178,11 +178,11 @@ grunt --help
178
178
179
179
## Running the End-to-end Test Suite
180
180
181
- Simply run:
181
+ Angular's end to end tests are run with Protractor. Simply run:
182
182
183
183
```shell
184
184
grunt test:e2e
185
185
```
186
186
187
- This will start the webserver and run the tests.
187
+ This will start the webserver and run the tests on Chrome .
188
188
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ grunt test:docgen --no-color
35
35
grunt test:unit --browsers $BROWSERS --reporters=dots,junit --no-colors --no-color
36
36
37
37
# END TO END TESTS #
38
- grunt test:e2e --browsers $BROWSERS_E2E --reporters=dots,junit --no-colors --no-color
39
38
grunt test:protractor
40
39
41
40
# Promises/A+ TESTS #
Original file line number Diff line number Diff line change @@ -136,7 +136,12 @@ module.exports = {
136
136
} ,
137
137
138
138
139
- updateWebdriver : function ( done ) {
139
+ updateWebdriver : function ( done ) {
140
+ if ( process . env . TRAVIS ) {
141
+ // Skip the webdriver-manager update on Travis, since the browsers will
142
+ // be provided remotely.
143
+ done ( ) ;
144
+ }
140
145
var p = spawn ( 'node' , [ 'node_modules/protractor/bin/webdriver-manager' , 'update' ] ) ;
141
146
p . stdout . pipe ( process . stdout ) ;
142
147
p . stderr . pipe ( process . stderr ) ;
You can’t perform that action at this time.
0 commit comments