Skip to content

currents-dev/currents-nx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
Jan 10, 2023
Nov 19, 2021
Jan 10, 2023
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Jan 10, 2023
Jan 10, 2023
Jan 10, 2023
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Nov 19, 2021
Jan 10, 2023
Jan 10, 2023
Nov 19, 2021

Repository files navigation

@currents/nx

NX plugin for running cypress tests using Currents or Sorry Cypress as an orchestration service.

The plugin is intended for usage in CI environments and runs Cypress in headless mode. Please use @nrwl/cypress for running cypress in interactive mode.

Setup

Install @currents/nx

npm i --save-dev @currents/nx

Add target currents to your project configuration:

{
  // ...
  "targets": {
    "currents": {
      "executor": "@currents/nx:currents",
      "options": {
        "record": true,
        "parallel": true,
        "cypressConfig": "apps/app-e2e/cypres.config.ts",
        "devServerTarget": "my-react-app:serve",
        "testingType": "e2e"
      }
    }
  }
  // ...

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.

nx run project:currents --group nx --record --key <key> --ci-build-id hello-currents-nx

Configuration

See the schema.json for the list of available options

Example

See https://github.com/currents-dev/currents-nx-example for example integration.

Migration

Version 1.0.0

  • @nrwl/cypress no longer required - the plugin is a standalone implementation that is not dependent on @nrwl/cypress. Use the available configuration options to configure the execution of cypress runs.