Skip to content
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

Idea : use expect_known_output #55

Closed
cderv opened this issue Jun 6, 2019 · 1 comment
Closed

Idea : use expect_known_output #55

cderv opened this issue Jun 6, 2019 · 1 comment

Comments

@cderv
Copy link

cderv commented Jun 6, 2019

Related to feature added in #32

Currently I see one drawback to the current function to test html: it will not handle encoding correctly because of readLines. Should not be a wide issue but could happen in some edge cases.

It made me think about testthat::expect_known_output. I think it could be useful : it writes result to file and compare then compare following test with this file. It seems like what you want to do.
I find it useful that the file is written at first test is not existing yet. You could update easily and I think it handles encoding by ensuring UTF8 for the written file. No need to write manually the comparison file.

Just an idea for improvement.

@ColinFay ColinFay mentioned this issue Sep 29, 2021
@ColinFay
Copy link
Member

Long overdue... but #743 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants