Skip to main content

Cypress

Cypress is a modern end-to-end testing framework for web applications. It provides a rich set of features to write, run, and debug tests for web applications.

🚀 Usage​

Add the following command to your CI configuration file:

fluentci run --wasm cypress install
fluentci run --wasm cypress run

Commands​

NameDescription
runRun Cypress tests from the CLI without the GUI
installInstall the Cypress executable matching this package's version
cacheManage the Cypress binary cache
infoPrint Cypress system information
verifyVerifies that Cypress is installed correctly
helpShows Cypress help
versionPrints Cypress version

Code examples​

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.2.1"

Use the following code to call a module function:

use fluentci_pdk::dag;

// ...

dag().call(
"https://pkg.fluentci.io/[email protected]?wasm=1",
"install",
vec![],
);
dag().call(
"https://pkg.fluentci.io/[email protected]?wasm=1",
"run",
vec![],
);

CI/CD pipeline integrations​

The following examples show how to integrate FluentCI with popular CI providers to run Cypress tests:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: cypress
args: |
install
- name: Run Cypress tests
run: |
fluentci run --wasm cypress install
fluentci run --wasm cypress run