bahmutov/cypress-split

spec="spec1,spec2,spec3" under --env option fails with "Cannot parse as valid JSON" error

serhiikovalenkoextcheckrcom opened this issue ยท 3 comments

Hi!

npx cypress run --env split=true,spec="spec1,spec2,spec3" or npx cypress run --env spec="spec1,spec2,spec3" fails:
image

The same about npx cypress run --env split=2,splitIndex=0,spec="spec1,spec2,spec3"

It works fine with 1 spec, and I didn't succeed to find a syntax which allows to pass more than one spec.
I've seen there are examples like cypress run --env flags='{"feature-a":true,"feature-b":false}' in documentation, but didn't found examples like mine.

I'm wondering if there is a way to use it as described in ReadMe?

Thank you!

Before I update the README, can you try passing specs using an environment variable, something like this:

$ SPEC="..." npx cypress run --browser chrome --env split=true

SPEC="..." npx cypress run --browser chrome --env split=true - this working, thank you!

๐ŸŽ‰ This issue has been resolved in version 1.3.14 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€