项目作者: politie

项目描述 :
Angular builder to run testcafe tests
高级语言: TypeScript
项目地址: git://github.com/politie/angular-testcafe.git
创建时间: 2018-11-19T19:06:22Z
项目社区:https://github.com/politie/angular-testcafe

开源协议:MIT License

下载


angular-testcafe Tests - E2E

A custom Angular builder for TestCafe.
Serves the Angular application, and then runs the TestCafe tests.

⚠️angular-testcafe supersedes @politie/angular-testcafe-builder⚠️

@politie/angular-testcafe-builder"">@politie/angular-testcafe-builder authors (Dutch National Police and Tim Nederhoff in person) have transferred the repository, related code, assets, and rights to DevExpress. The TestCafe team maintains and supports the package under the new name angular-testcafe.

If your projects are still using @politie/angular-testcafe-builder"">@politie/angular-testcafe-builder, we recommend that you switch to angular-testcafe. The development of @politie/angular-testcafe-builder"">@politie/angular-testcafe-builder is discontinued: it won’t receive any updates, even for critical bugs and security vulnerabilities.

Install

  1. $ npm install --save-dev angular-testcafe

Use in angular.json

  1. {
  2. "projects": {
  3. "my-project-e2e": {
  4. "architect": {
  5. "e2e": {
  6. "builder": "angular-testcafe:testcafe",
  7. "options": {
  8. "browsers": [
  9. "chrome --no-sandbox",
  10. "firefox"
  11. ],
  12. "src": ["e2e/*.e2e-spec.ts"],
  13. "reporters": [
  14. {
  15. "name": "html",
  16. "output": "path/to/my/report.html"
  17. },
  18. {
  19. "name": "spec"
  20. }
  21. ]
  22. }
  23. }
  24. }
  25. }
  26. }
  27. }

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

build

  1. $ npm run build

pack

  1. $ npm pack

NOT Implemented (TODO):

  • remote browsers
  • QR code
  • video
  • ssl
  • clientScripts

Contributors

Originally created at Dutch National Police by

Developer Express Inc. (https://devexpress.com)