-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Please add a --stdout and --stderr to the tap runner #3
Comments
essential! +1 |
you can kind of get around this by exporting an environment var on your shell:
and you'll get the truncated console output as well as some other diagnostic info. |
also, another BS workaround is to:
not remotely a good solution but is currently getting me the object inspection I need |
Setting TAP_DIAG works, but it of course causes much more output than is desired. |
+1 |
1 similar comment
+1 |
I've added a +1 these two pull requests: |
+1 |
Should this even require an option? I think that stderr should probably just be emitted as is. For debugging, it'd be nice to have a test.diag() function which outputted TAP diagnostics (http://testanything.org/wiki/index.php/TAP_specification#Diagnostics) This is somewhat separate from outputting stderr, though. |
Correct test.doesNotThrow() so it doesn't explode node-tap
I also have a pull request which forwards stderr all the time and includes a test to verify. FYI. Also for any of those who need this asap, you can use my tap runner (tapr) which provides stderr and stdout, optional colorized output, and a cleaner assert formatting. It was based on the original tap runner and still uses all other original tap components just with a customized runner. There are some screenshots on my github page https://github.com/jeffbski/tapper and it is available in npm as tapr |
* chore: bump @npmcli/template-oss from 3.4.2 to 3.4.3 Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 3.4.2 to 3.4.3. - [Release notes](https://github.com/npm/template-oss/releases) - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md) - [Commits](npm/template-oss@v3.4.2...v3.4.3) --- updated-dependencies: - dependency-name: "@npmcli/template-oss" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: postinstall for dependabot template-oss PR Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: npm team <ops+robot@npmjs.com>
It's really useful to be able to get my console.log()'s to show up when writing tests, until stuff is in a "steady state".
The text was updated successfully, but these errors were encountered: