FAQ / @knapsack-pro/cypress / Knapsack Pro Cypress specific questions

How to run tests only from specific directory in Cypress?

You can set KNAPSACK_PRO_TEST_FILE_PATTERN="cypress/integration/**/*.{js,jsx,coffee,cjsx}" and change pattern to match your directory with test files. You can use glob pattern.

If you want to use a few patterns you can do it this way KNAPSACK_PRO_TEST_FILE_PATTERN="{pattern_1,pattern_2}".

Start using Knapsack Pro

Sign up and speed up your tests.