G-Fidalgo / cypress-runner

Run one or multiple Cypress test from CodeLens
MIT License
6 stars 0 forks source link

Update documentation on readme #4

Open G-Fidalgo opened 2 years ago

G-Fidalgo commented 2 years ago

Update documentation of the plugin, regarding settings

Update documentation, on steps to do when working over mono repo projects, such as Nx

midleman commented 1 year ago

Hello, would love to see some documentation on nx mono-repo setup. I've been fiddling with the config, but haven't been able to get it right.

G-Fidalgo commented 1 year ago

Hi @midleman In order to get it working for example with NX projects I suppose that you already have an nx command that will run your cypress test for example:
nx run <cypress-project>:<command_to_run_e2e_test>
nx run frontend:e2e

So on VsCode, select cypress-runner plugin > Extension Settings

Edit_Plugin_Settings

Then edit the setting > Cypress command

Edit_Cypress_command

Then each time you push Run instead of build the whole Cypress command to execute the project Cypress executable it will use your personalized one + --spec $filePath $args

As soon as possible I have time to, I will update plugin docs to have more examples

Thank you for your time and comment 😃