test harness infrastructure question #3418
Unanswered
pprindeville
asked this question in
Q&A
Replies: 1 comment 8 replies
-
|
There's no out of the box support in the test harness but you can use uv_spawn() to spawn a subprocess and capture its output. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've got a PR that's in progress, but I wanted to add some test coverage to it (as I don't have access to all the platforms that
libuvruns on to do exhaustive testing... and I'd rather add tests that would then add some degree of regression protection in the future). Problem is I'm not sure how, and I've not seen an example intest/that does something similar.I want to run (depending on the platform) various commands, capture the output, parse it, and then use that as the source of truth to compare against the values that my code being tested returns.
What's the appropriate way to do this? And what support is baked into the test harness for doing so?
Beta Was this translation helpful? Give feedback.
All reactions