Skip to content

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

@serhiikovalenkoextcheckrcom

Description

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions