Giter Club home page Giter Club logo

Comments (4)

Robdel12 avatar Robdel12 commented on June 6, 2024 1

Alright, what is going on here is really subtle. Could you give this a try and see if it works for you?

npx percy exec -- cypress.cmd run --spec "cypress/integration/*"

That worked for me locally and it's what we have to do in our node scripts with example apps to support windows: https://github.com/percy/example-percy-cypress/pull/23/files#diff-5768af5deda587912dcade757b171d20R8

from percy-cypress.

Robdel12 avatar Robdel12 commented on June 6, 2024

Hey Matt! Thanks for opening an issue, I'm going to give this a whirl on my Windows machine today to see if I can uncover what's going on here.

from percy-cypress.

mattmazzola avatar mattmazzola commented on June 6, 2024

Sorry it took so long to follow up.

I confirmed that using cypress.cmd instead of cypress worked / does not produce the error.
Although can you explain why/how this change works?

I thought the cypress command was using the commands exposed by the cypress package and am not sure how adding .cmd would have an affect. I'm assume something to do with the way --exec parameter is written?

from percy-cypress.

Robdel12 avatar Robdel12 commented on June 6, 2024

Going to close this one up. We released a new version of both this SDK & the underlying SDK (@percy/agent) that removes the need to specify .cmd for Windows: percy/percy-agent#175

What's happening is nodes spawn ignores windows PATHEXT which is kinda like $PATH & that means spawn only works on Windows for .exe files. There's a little more information in the PR linked above.

from percy-cypress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.