9.0.1 • Published 2 months ago

@nx-extend/e2e-runner v9.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@nx-extend/e2e-runner

Nx plugin to start your API and then run the Cypress/Playwright E2E tests.

Setup

Install

npm install -D @nx-extend/e2e-runner
nx g @nx-extend/e2e-runner:add

Available options:

All options of @nrwl/cypress:cypress are available here if runner = cypress All options of @nx-extend/playwright:test are available here if runner = playwright All options of @nx/workspace:run-commands are available here if runner = run-commands

Target options:

The targets option is used to define targets that should be started before running the tests. Each target can be configured with the following options.

{
  target: string // The target to run.
  checkUrl?: string // The url to check if the target is "live", a target is live if this url returns a status-code in the 200 range.
  checkMaxTries?: number // The amount of times the `checkUrl` is tried before failing, there is a two second delay between tries.
  env?: { [key: string]: string } // Extra parameters provided to the target on startup.
  reuseExistingServer?: boolean // Set to true to allow using a previously started target.
  rejectUnauthorized?: boolean // Set to false to allow the use of self-signed certificates in your target.
  logging?: boolean // Set to true to forwards the logs of the target, set to false to hide the logs of the target. When undefined, the logs are only forwarded with the `--verbose` flag.
}

Example target

{
  ...
  "e2e": {
    "executor": "@nx-extend/e2e-runner:run",
    "options": {
      "runner": "playwright | cypress | run-commands | @nx/playwright",
      "targets": [
        {
          "target": "app:serve",
          "checkUrl": "http://localhost:4200/",
          "checkMaxTries": 50,
          "rejectUnauthorized": true
        },
        {
          "target": "api:serve",
          "checkUrl": "http://localhost:9000/health",
          "checkMaxTries": 50,
          "logging": false
        }
      ]
    }
  }
}
9.0.1

2 months ago

9.0.0

3 months ago

8.2.0

5 months ago

8.1.0

5 months ago

8.0.1

5 months ago

6.1.0

11 months ago

6.3.0

9 months ago

6.2.1

9 months ago

6.2.0

10 months ago

7.0.0

9 months ago

8.0.0

6 months ago

6.0.1

11 months ago

5.2.0

11 months ago

5.1.0

11 months ago

5.0.0

11 months ago

6.0.0

11 months ago

2.3.2

1 year ago

2.3.1

1 year ago

2.3.0

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

1.0.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-alpha.5

2 years ago

1.0.0-alpha.4

2 years ago

1.0.0-alpha.3

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago