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

4.0.0 • Public • Published

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 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, we recommend that you switch to angular-testcafe. The development of @politie/angular-testcafe-builder is discontinued: it won't receive any updates, even for critical bugs and security vulnerabilities.

Install

$ npm install --save-dev angular-testcafe

Use in angular.json

{
  "projects": {
    "my-project-e2e": {
      "architect": {
        "e2e": {
          "builder": "angular-testcafe: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

build

$ npm run build

pack

$ 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)

Package Sidebar

Install

npm i angular-testcafe

Weekly Downloads

948

Version

4.0.0

License

MIT

Unpacked Size

23.4 kB

Total Files

7

Last publish

Collaborators

  • belym.a.2105
  • kirovboris