-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
doc: How to run just the .out
tests?
#40920
Comments
These would be tests in Does that help? |
Yes! Thank you, that’s what I was looking for. I was frustrated by the fact that when these tests fail, the output tells me the command the test runner ran to generate the output, not to compare the output. In other words, if I edit
Which for other types of tests is a one-liner to re-run that particular test; but for these “compare to Anyway because these tests are somewhat unusual, I think a callout explaining them in the docs might help others; it would at least have helped me. It’s something I’ve been wondering about for years. |
Since this has been a pain point for you and that doc is where you looked for information and didn't find it, I am +1 on adding the information there. Do you want to open a PR for that or would you prefer I do it? |
I don't understand these tests well, so I think it would be better if you wrote this. Could we add something to the output where if the command that was run is from one of these tests, another line follows the |
Included in #40933.
I think the way to do this would be: Move the compare-output-to-.out-file stuff out of Then running the test directly with @nodejs/testing What do you think? |
It seems to me that maybe all these |
I have no opinion because I'm not familiar with the friction involved. No objection from me, certainly! If it simplifies things for you and others, then that's reason enough for me. |
When I first started, these I think moving to an approach like in the test Geoffrey cited would be a huge improvement 🙏 |
Fixed by #40933. |
I’ve done some digging, and I’m sure if I kept looking I’d eventually find it, but could someone please tell me how to run just the tests that check expected output against the
.out
files? Those tests are annoying to update, as it’s a lot of trial-and-error to get the new output in, and it’s tedious to have to run the fullmake test
for every attempt.This feels like something that should be documented in https://github.com/nodejs/node/blob/master/BUILDING.md#running-tests.
The text was updated successfully, but these errors were encountered: