This package has been deprecated

Author message:

Moved to @politie/angular-testcafe-builder

angular-testcafe-builder
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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/host is for Angular to be served on. ports are the ports for TestCafe to run on

build

npm run build

pack

npm pack

NOT Implemented (TODO):

  • remote browsers
  • --test argument
  • --test-grep argument
  • --test-meta argument
  • --fixture argument
  • --fixture-grep argument
  • --fixture-meta argument
  • QR code
  • tests

Package Sidebar

Install

npm i angular-testcafe-builder

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

12.8 kB

Total Files

6

Last publish

Collaborators

  • timnederhoff