cypress-skip-test
cypress-skip-test copied to clipboard
Simple commands to skip a test based on platform, browser or a url
This should solve #41 I just reversed the logic from `onlyOn`, this should now work the way it says it does in the README.
Currently, only boolean value can be passed to skipOn/onlyOn. What about passing function which returns boolean and async function as well?
Use `cypress-expect` to verify the executed and skipped test Would be nice to have https://github.com/bahmutov/cypress-expect/issues/19 to make it very strict
Not just `isOn` ```js // CYPRESS_ENVIRONMENT=draft skipOn('draft', () => { ... }) ```
Some syntax like ``` onlyOnCypress.gt('6.2.0', () => { it('works for Cypress v > 6.2.0', () => { ... }) }) ```
https://docs.cypress.io/guides/references/configuration.html#isInteractive
There seems to be a finite list of values that can be passed in to `skipOn` and `onlyOn` (eg. 'localhost', 'mac', etc.) which don't seem to be documented anywhere. I...
Maybe use https://github.com/watson/ci-info and pass CI info so we can skip / only run a test on a particular CI
Getting this error for 'cypress run' command to execute the test case. **E.g.** it('runs given function for some environment', () => { Cypress.env('ENVIRONMENT', 'test2') skipOn('test2') let called = true expect(called,...
If no tests are run for a given spec file, then recordings should be disabled. This prevents empty tests from overwriting a video from a previous run.