Closed jdborneman-terminus closed 2 years ago
I don't have a Windows machine to investigate, but try getting the debug logs https://github.com/cypress-io/cypress-grep#debugging to see what is going on. Also, try putting the grep tags first in the --env
parameter?
I don't have a Windows machine to investigate, but try getting the debug logs https://github.com/cypress-io/cypress-grep#debugging to see what is going on. Also, try putting the grep tags first in the
--env
parameter?
Strange! Looks like moving grepTags to be first in the --env worked. Quite strange but I'll take it. I'll be closing this issue then. Thanks @bahmutov !
@jdborneman-terminus I think problem was with quotes. You could try to add quotes to whole --env parameter like: --env "USERNAME=env.USERNAME,PASSWORD=env.PASSWORD,grepTags=@SMOKE+@UI"
or play with quotes
Running my tests (a very small/simple POC to prove out Cypress for our use cases) through a GitHub Action so that they run on MacOS: Chrome/FF and Windows: Chrome/FF/Edge.
MacOS tests run perfectly with my
@SMOKE+@UI
filterRun output:
Windows tests ignore grepTags and run all tests. 😞
Note the missing
cypress-grep: filtering using tag "@SMOKE+@UI"
line for the Windows runs.Run Output:
It ran them all. 😞
I don't have a physical Windows machine to test this on, alas. I am running this with yarn as a Zero-Installs app (I think that's where the ERROR:node_bindings.cc is coming from) but they don't seem to impact running on MacOS.
Any pointers as to what I might be doing wrong? I wouldn't be surprised if it's something fiddly about envs passed in for Windows being problematic