Rperform icon indicating copy to clipboard operation
Rperform copied to clipboard

correctness test your own code?

Open tdhock opened this issue 10 years ago • 2 comments

maybe write some tests to make sure that your mem_compare function returns a data frame with a certain number of row and certain row names?

either clone an existing repository as a part of the test framework (e.g. hadley/stringr) or use git2r to make a simple repository that you can run your code on.

tdhock avatar Jul 21 '15 15:07 tdhock

I have written a basic test using testthat to begin with. Link to commit: https://github.com/da-ta-vinci21/Rperform/commit/21d6620febd6c0cf6a48c9db94985b4d2876de7f

analyticalmonk avatar Jul 31 '15 12:07 analyticalmonk

for the function that generates a web page, test that the web page contains one image for every test.

tdhock avatar Aug 03 '15 15:08 tdhock