buildkite / test-engine-client

Buildkite Test Engine Client (bktec) is an open source tool to orchestrate your test suites. It uses your Buildkite Test Engine suite data to intelligently partition and parallelise your tests.
MIT License
9 stars 1 forks source link

Fix Cypress command #224

Closed nprizal closed 1 week ago

nprizal commented 1 week ago

Description

bktec replaces {{testExamples}} with the list of test files, separated by a space, which is not recommended by cypress.

⚠ Warning: It looks like you're passing --spec a space-separated list of arguments:
"./cypress/e2e/click.cy.js ./cypress/e2e/visit.cy.js"
This will work, but it's not recommended.
If you are trying to pass multiple arguments, separate them with commas instead:
  cypress run --spec arg1,arg2,arg3

The most common cause of this warning is using an unescaped glob pattern. If you are
trying to pass a glob pattern, escape it using quotes:
  cypress run --spec "**/*.spec.js"

This PR update the Cypress command to join the list of tests with ,.