New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[📖 Docs]: WDIO CLI - isTTY assumption on "pipe" arguments #10618
Comments
Can you explain a bit more about your issue and what documentation you like to add? |
Yep, let me explain our use case for starter:
the way we tied up the flow this is more or less what happens:
case 1 - executing the node script from husky
case 2 - executing the node script manually from the developer own terminalthere is no pending "pipe", the command doesn't overwrite the This is pretty much custom logic, what's the problem with wdio documentation then?webdriverio/packages/wdio-cli/src/commands/run.ts
I can't find any documentation (maybe I am just not finding it myself, if that's the case please point me to the documentation where this is covered) that documents this "assumption" that the I don't think that our flow is a "strange" flow to have, it makes sense to me that pre-push developers may want to run a suite of smoke e2e, and if that's the case, it also somewhat common that the tool used for this is husky, and the assumption wdio is making about the piped-in arguments is an assumption that goes against this flow by design having some documentation addressing this flow may prove useful to many people,
- the assumption being based on stdin.isTTY Please let me know what your thoughts are regarding this, if I am missing an already existing documentation and/or if further clarification is required on my side |
@yuri-scarbaci-lenio thanks for the clarification. Yes we do not have any documentation about piping files into the WebdriverIO command. I would suggest to add a section to Would you like to take a stab at this since you know most about this? |
Pre-check
Describe the improvement
Missing documentation
Description of the improvement / report
We are running wdio via a node script invoking the CLI commands,
in our flow we use execa and husky,
due to this assumption:
webdriverio/packages/wdio-cli/src/commands/run.ts
Line 211 in 4cad544
when using default
execa
behaviour with standardhusky
pre-push hook behaviour we have got a very hard to track bug on our side,I would love to contribute to document this myself if someone can point me to where I should add the documentation for the WDIO CLI behaviours
more infos:
stdin
with$
sindresorhus/execa#550 (comment)Code of Conduct
The text was updated successfully, but these errors were encountered: