Skip to content

add support for Cypress component testing #620

Open

Description

@bicarbon8

from what I can tell based on the documentation and code it looks like only the e2e tests are being executed. I would like to use BrowserStack when running Cypress Component tests (see: https://docs.cypress.io/guides/component-testing/overview) which locally I can run using npx cypress run --component and by having a cypress.config.js file that looks like:

// cypress.config.js
const { defineConfig } = require('cypress');
const webpackConfig = require('./webpack.config.cjs');

module.exports = defineConfig({
    component: {
        devServer: {
            framework: 'react',
            bundler: 'webpack',
            webpackConfig
        },
        viewportWidth: 800
    }
});

NOTE: e2e test configuration could also exist in the above config file under a e2e key

I would like to be able to use the browserstack-cypress-cli tool to run component tests using a command-line option that indicates that component tests should be run and not e2e tests (it would be nice if there were several options available such as e2e as a default, component and both)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions