I have a very large Cypress-based test suite, cy_tests_A_B_monolith, and the number of tests in ./cypress/integration folder is substantial.
I wish to partition these integration tests into their own npm module, and make them dependencies of a more manageable Cypress test suite.
- From
cy_tests_A_B_monolith - To
cy_tests_A_B_manageable+ dependenciescy_test_A+cy_test_B
Rough draft below. Uncertain how to import ./cypress/integration/*** tests to be a dependency into another Cypress test suite.
Much appreciated for suggestions, Thank you.
Rough Draft:
FROM monolith
Many integration tests + src custom commands...
npm cy_tests_A_B_monolith
├── cypress
│ ├── integration
│ │ ├── A
│ │ └── B
│ └── support
│ └── specs
│ ├── A
│ └── B
├── src
│ ├── A
│ | └── commands
│ └── B
│ └── commands
TO...
Partitioning monolith into a manageable test suite by maintaining subset of /cypress/integration of monolith test suite
npm cy_tests_A_B_manageable
├── cypress
│ ├── integration
│ │ ├── A << dependency imported cy_test_A ./cypress/integration/A
│ │ └── B << dependency imported cy_test_B ./cypress/integration/B
npm cy_test_A
├── cypress
│ ├── integration
│ │ └── A
│ └── support
│ └── specs
│ └── A
├── src
│ └── A
│ └── commands
npm cy_test_B
├── cypress
│ ├── integration
│ │ └── B
│ └── support
│ └── specs
│ └── B
├── src
│ └── B
│ └── commands
