A custom Angular builder for TestCafe. Serves the Angular application, and then runs the TestCafe tests.
$ npm install --save-dev @politie/angular-testcafe-builder
{
"projects": {
"my-project-e2e": {
"architect": {
"e2e": {
"builder": "@politie/angular-testcafe-builder:testcafe",
"options": {
"browsers": [
"chrome --no-sandbox",
"firefox"
],
"src": ["e2e/*.e2e-spec.ts"],
"reporters": [
{
"name": "html",
"output": "path/to/my/report.html"
},
{
"name": "spec"
}
]
}
}
}
}
}
}
NOTE: check schema.json for a list of all options
A tutorial how to use Angular and Testcafe combined with this builder can be found here
$ npm run build
$ npm pack
- remote browsers
- QR code
- video
- ssl
- clientScripts