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

Test proposal #68

Open
maelle opened this issue Sep 24, 2021 · 3 comments
Open

Test proposal #68

maelle opened this issue Sep 24, 2021 · 3 comments

Comments

@maelle
Copy link
Contributor

maelle commented Sep 24, 2021

  • Adding a general test like test-pkgcheck.R but on a package that does everything wrong. Snapshot for Markdown but also for the printed stuff.
  • Testing each helper on its own: if it operates on a path, create skeleton and tweak it; all checks operating on pkgstats output could be tested in the same file. these tests would be much more minimal.

Thoughts?

@mpadge
Copy link
Member

mpadge commented Sep 24, 2021

Yes, good and important ideas. I generally design tests to only call exported functions, and try to avoid direct testing of internal functions as much as possible. But this package, and all of the internal test functions in particular, is a good argument for direct testing of those. And designing and testing an epic-fail package is obviously also important.

@maelle
Copy link
Contributor Author

maelle commented Sep 24, 2021

As a check contributor, I'd find it less daunting if I could start with a really small test and then I'd include my check to the machinery (and it'd turn up in the less unit unit test).

@mpadge
Copy link
Member

mpadge commented Sep 30, 2021

Addressing #40 and associated changes has gone some way towards this. All pkgchk_ functions now take the same much more standardised input. That input has not yet been documented, but that's very high on priority list, and once that's done, this issue can then be addressed much more cleanly. It's all getting there ...

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

No branches or pull requests

2 participants