GithubHelp home page GithubHelp logo

isabella232 / browserstack-cypress-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from browserstack/browserstack-cypress-cli

0.0 0.0 0.0 593 KB

NPM package for the customers to run Cypress on Browserstack Infra

License: MIT License

JavaScript 99.37% CSS 0.63%

browserstack-cypress-cli's Introduction

BrowserStack Cypress CLI

npm version

Note: Running Cypress tests on BrowserStack is now in public beta. Learn more here

If you are looking for a getting started guide, and a more up-to date documentation, check out the BrowserStack Cypress documentation

The browserstack-cypress-cli is BrowserStack's command-line interface (CLI) which allows you to run your Cypress tests on BrowserStack.

Quick Start

Running your first Cypress test suite on BrowserStack is super easy - just install our CLI, configure the test run settings and start testing. Here’s a quick start guide to help you get started.

Step 1: Install the CLI

First, install the BrowserStack - Cypress CLI via npm:

# Install the BrowserStack Cypress CLI
$ npm install -g browserstack-cypress-cli

Step 2: Configure

Next, set up your BrowserStack credentials and configure the browsers that you want to run your tests on. Use the init command to generate a sample browserstack.json file, or alternatively create one from scratch.

# Create a sample configuration file for configurations and capabilities
$ browserstack-cypress init

Fill in the auth, browsers, run_settings values in the browserstack.json file to be able to run your tests. Refer to the configuration options to learn more about all the options you can use in browserstack.json and the possible values that you can mention.

Make sure you also specify the npm packages that your tests need to run using the npm_dependencies option in run_settings.

Step 3: Run your tests

After you specify the required run settings, you can run your tests on BrowserStack:

$ browserstack-cypress run

After the tests are successfully submitted, you can access the test results on the BrowserStack Automate dashboard

To learn more about the different options the CLI supports - like running tests in parallel, running tests on localhost URLs etc., refer to the BrowserStack Cypress documentation

Documentation

Here are a few important links to get you started and help you successfully integrate the CLI into your CI/CD pipelines.

Getting Help

If you need any help, want to share feedback or report issues while running the tests, reach out to us on [email protected].

License

This project is released under MIT License. Please refer the LICENSE.md for more details.

browserstack-cypress-cli's People

Contributors

dhimil avatar karanshah-browserstack avatar karanshah81295 avatar nagpalkaran95 avatar nakula avatar pawanpanjwani avatar sagarganiga avatar sreyanth avatar suryart avatar

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.