GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add support for Cypress component testing · Issue #620 · browserstack/browserstack-cypress-cli

add support for Cypress component testing #620

New issue
Copy link
New issue
Copy link
Open
Open
add support for Cypress component testing#620
Copy link

Description

@bicarbon8
bicarbon8
opened on Jul 3, 2023
Issue body actions

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)

Reacted by Josh Wooding

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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.