Skip to content
Zhian N. Kamvar edited this page Feb 5, 2015 · 3 revisions

Testing in poppr is achieved through the package testthat. If you contribute to poppr, you should write tests for your contributions especially if these contributions have analytical output (i.e. a genetic distance or differentiation test). The tests live in the folder tests/testthat. These tests are run during R CMD check, so to avoid getting grief from the maintainers, make sure your tests run in under a second.

Testing in Windows

If you use a *nix system, make sure your tests pass on Windows machines. An easy way to do this is to use the function build_win() from the devtools package.

Clone this wiki locally