File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33@name Developer Guide: E2E Testing
44@description
55
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+
910
1011As applications grow in size and complexity, it becomes unrealistic to rely on manual testing to
1112verify 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.
135135
136136## Running the Unit Test Suite
137137
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
139139tests once on Chrome run:
140140
141141```shell
@@ -178,11 +178,11 @@ grunt --help
178178
179179## Running the End-to-end Test Suite
180180
181- Simply run:
181+ Angular's end to end tests are run with Protractor. Simply run:
182182
183183```shell
184184grunt test:e2e
185185```
186186
187- This will start the webserver and run the tests.
187+ This will start the webserver and run the tests on Chrome .
188188
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ grunt test:docgen --no-color
3535grunt test:unit --browsers $BROWSERS --reporters=dots,junit --no-colors --no-color
3636
3737# END TO END TESTS #
38- grunt test:e2e --browsers $BROWSERS_E2E --reporters=dots,junit --no-colors --no-color
3938grunt test:protractor
4039
4140# Promises/A+ TESTS #
Original file line number Diff line number Diff line change @@ -136,7 +136,12 @@ module.exports = {
136136 } ,
137137
138138
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+ }
140145 var p = spawn ( 'node' , [ 'node_modules/protractor/bin/webdriver-manager' , 'update' ] ) ;
141146 p . stdout . pipe ( process . stdout ) ;
142147 p . stderr . pipe ( process . stderr ) ;
You can’t perform that action at this time.
0 commit comments