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.
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
Add githook like so:
git config core.hooksPath .githooks
# https://golangci-lint.run/usage/install/
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run
go test -v ./... -coverprofile=coverage.out
go tool cover -func=coverage.out
go tool cover -html=coverage.out
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