cypress-parallel-cli

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 5 Imported by: 0

README

cypress-parallel-cli CircleCI

cypress-parallel-cli is the tool that will be used by cypress-parallel to run cypress unit testing in parallel.

At the execution of each spec, it will send back the result to the API.

Debug

To debug your code directly in the docker container, do this:

sudo docker run --rm --entrypoint="" -v $PWD:/tmp/cypress-parallel-cli -exec -ti ghcr.io/lord-y/cypress-parallel-docker-images/cypress-parallel-docker-images:10.10.0-2.0 bash
# install golang
cd /tmp/cypress-parallel-cli
scripts/golang.sh 1.19.2
source ~/.bashrc
# exemple of command
export CYPRESS_PARALLEL_CLI_LOG_LEVEL=debug
export CYPRESS_PARALLEL_CLI_LOG_LEVEL_WITH_CALLER=true
go run main.go cypress --repository https://github.com/cypress-io/cypress-example-kitchensink.git --branch master --specs cypress/e2e/2-advanced-examples/connectors.cy.js --uid uuid --report-back

Git hooks

Add githook like so:

git config core.hooksPath .githooks

Linter

# https://golangci-lint.run/usage/install/
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run

Tests

go test -v ./... -coverprofile=coverage.out
go tool cover -func=coverage.out
go tool cover -html=coverage.out

CI

To know which cypress, chrome and firefox version to use for version 9.7.0, do:

sudo docker run --rm --entrypoint="" -exec -ti cypress/included:9.7.0 bash
cypress --version
firefox --version
google-chrome --version

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
Package cmd manage all commands required to launch cypress-parallel-cli
Package cmd manage all commands required to launch cypress-parallel-cli
cypress
Package cypress assemble all commands required to run cypress unit testing
Package cypress assemble all commands required to run cypress unit testing
Package git will manage all requirements to clone repository
Package git will manage all requirements to clone repository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL