Giter Site home page Giter Site logo

cypress-parallel-cli's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.