You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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).
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 ...
Thoughts?
The text was updated successfully, but these errors were encountered: