mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-06-18 03:58:15 +08:00
chore(end2end): remove old references to the scenario runner and update to point to protractor
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
@name Developer Guide: E2E Testing
|
||||
@description
|
||||
|
||||
**If you're starting a new Angular project, you may want to look into
|
||||
using {@link https://github.com/angular/protractor Protractor}, as it is going to
|
||||
replace the current method of E2E Testing in the near future.**
|
||||
**Angular Scenario Runner is in maintenance mode - If you're starting a new Angular project,
|
||||
consider using {@link https://github.com/angular/protractor Protractor}.**
|
||||
|
||||
|
||||
|
||||
As applications grow in size and complexity, it becomes unrealistic to rely on manual testing to
|
||||
verify the correctness of new features, catch bugs and notice regressions.
|
||||
|
||||
@@ -135,7 +135,7 @@ made available a local web server based on Node.js.
|
||||
|
||||
## Running the Unit Test Suite
|
||||
|
||||
We write unit and integration tests with Jasmine and execute them with Karma. To run all of the
|
||||
We write unit tests with Jasmine and execute them with Karma. To run all of the
|
||||
tests once on Chrome run:
|
||||
|
||||
```shell
|
||||
@@ -178,11 +178,11 @@ grunt --help
|
||||
|
||||
## Running the End-to-end Test Suite
|
||||
|
||||
Simply run:
|
||||
Angular's end to end tests are run with Protractor. Simply run:
|
||||
|
||||
```shell
|
||||
grunt test:e2e
|
||||
```
|
||||
|
||||
This will start the webserver and run the tests.
|
||||
This will start the webserver and run the tests on Chrome.
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ grunt test:docgen --no-color
|
||||
grunt test:unit --browsers $BROWSERS --reporters=dots,junit --no-colors --no-color
|
||||
|
||||
# END TO END TESTS #
|
||||
grunt test:e2e --browsers $BROWSERS_E2E --reporters=dots,junit --no-colors --no-color
|
||||
grunt test:protractor
|
||||
|
||||
# Promises/A+ TESTS #
|
||||
|
||||
@@ -136,7 +136,12 @@ module.exports = {
|
||||
},
|
||||
|
||||
|
||||
updateWebdriver: function(done){
|
||||
updateWebdriver: function(done){
|
||||
if (process.env.TRAVIS) {
|
||||
// Skip the webdriver-manager update on Travis, since the browsers will
|
||||
// be provided remotely.
|
||||
done();
|
||||
}
|
||||
var p = spawn('node', ['node_modules/protractor/bin/webdriver-manager', 'update']);
|
||||
p.stdout.pipe(process.stdout);
|
||||
p.stderr.pipe(process.stderr);
|
||||
|
||||
Reference in New Issue
Block a user