Skip to content

Commit 48f71ce

Browse files
IsmaestroIsmael Ramos
authored andcommitted
feat(package): added e2e commands for specific suites
1 parent 5f7c302 commit 48f71ce

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ Live DEMO [here](http://angularexampleapp.com/)!
3434

3535
`npm run test` - Runs unit tests with karma and jasmine
3636

37-
`npm run e2e` - Runs end to end tests with protractor
37+
`npm run e2e` - Runs end to end tests
38+
39+
`npm run e2e:home` - Runs end to end tests only for the home directory. There are more of this commands for development purposes
3840

3941
`npm run build` - Builds the app for production
4042

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"deploy": "ng build --prod --base-href / && angular-cli-ghpages",
99
"test": "ng test --watch=false --code-coverage",
1010
"e2e": "ng e2e",
11+
"e2e:home": "ng e2e --serve false --prod --specs=./e2e/pages/home/**/*.e2e-spec.ts",
12+
"e2e:heroeslist": "ng e2e --serve false --prod --specs=./e2e/pages/heroes-list/**/*.e2e-spec.ts",
1113
"lint": "ng lint",
1214
"ci": "npm run lint && npm run test && npm run e2e",
1315
"sme": "ng build && source-map-explorer dist/main.bundle.js",

0 commit comments

Comments
 (0)