1.0.5 • Published 7 years ago
angular-testcafe-builder v1.0.5
angular-testcafe
A custom Angular builder for TestCafe. Serves the Angular application, and then runs the TestCafe tests.
Use in angular.json
{
"projects": {
"my-project-e2e": {
"architect": {
"e2e": {
"builder": "angular-testcafe-builder:testcafe",
"options": {
"browsers": [
"chrome --no-sandbox",
"firefox"
],
"src": "e2e/*.e2e-spec.ts",
"host": "localhost",
"port": "4200",
"reporters": [
{
"name": "html",
"outFile": "path/to/my/report.html"
},
{
"name": "spec"
}
]
}
}
}
}
}
}NOTE: check schema.json for a list of all options
NOTE:
port/hostis for Angular to be served on.portsare the ports for TestCafe to run on
build
npm run buildpack
npm packNOT Implemented (TODO):
- remote browsers
--testargument--test-grepargument--test-metaargument--fixtureargument--fixture-grepargument--fixture-metaargument- QR code
- tests