-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
output of test diffs gets overwritten #88
Comments
This has to fixed upstream first, the problem is that |
That may be my issue too -- having used this for years from littler via the It all works, and is both functional and pretty ... just not as pretty as it could be. |
We can definitely improve this, and will soonish, but it is not as easy as it looks. The reason is that R prints the test output to stderr, and the rest of the output to stdout. We capture them separately, and then the timing information is basically lost, and we print them intermingled. One way to solve this is to send both stdout and stderr into the same pipe/socket, but callr cannot do that currently AFAICT. Another way is to only print stderr, if it is a complete line, that'll complicate my output parsing a bit. Anyway, will fix soon. |
Your call. But if it can't be done nicely, then maybe don't do it. Even a small, but consistent and predictable, amount of such "line noise" takes away from the work done making the rest pretty. Anyway, as long as you are aware... |
OK, while timely stdout & stderr collection is a problem, it seems that in this particular case the main problem is just not handling the output of the One question is what to do with output differences. |
The spelling package uses this to print potential spelling errors, without causing an actual check NOTE or ERROR. The diff output is often intended for manual visual inspection, so I think it should somehow be available in the return object. |
For tests that compare the output. Closes #88.
I am current with released packages and I am still seeing the issue, so not sure closing is the right move. |
Great package!
If a package contains normal files in its tests directory, when they generate output, rcmdcheck seems to overprint this. Illustrated below. Package tested on: sf.
The text was updated successfully, but these errors were encountered: