Skip to content

Component testing setup  #72

@beatfactor

Description

@beatfactor

We need to add an onboarding process for setting up the various component testing plugins. I would suggest also to add 3 different options at the start (before the test runner selection), with multi-select.

  • end-to-end testing
  • component testing
  • mobile testing

This will affect many of the rest of the questions/prompts.

Component testing

- Select UI framework (single-choice):
   - React
   - Vue.js
   - Storybook
  • the plugins array is populated with the selected plugin
  • React/Vue
    • vite.config.js / vite.config.ts config file is created which loads the vite-plugin-nightwatch
    • the nightwatch config file contains a vite_dev_server settings block which looks like:
      • start_vite: true,
        port: 5173
        
    • the default base_url is localhost:5173
  • React only
  • Storybook
    • default base_url is http://localhost:6006
    • default source folder is 'stories/*.stories.jsx'
    • the nightwatch config file needs to contain the following
    •  '@nightwatch/storybook': {
          start_storybook: true,
          storybook_config_dir: '.storybook',
          hide_csf_errors: true,
          show_browser_console: true,
          storybook_url: 'http://localhost:6006/'
       } 
      

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions