Open hofnerb opened 7 years ago
I added some simple tests to the main branch:
@patriciaburger: is the read_geno test ready to me merged?
Running ‘testthat.R’ ERROR Running the tests in ‘tests/testthat.R’ failed. Last 13 lines of output: 1: expect_equal(hsa_info_ex, hsa04020_info) at testthat/test_gwas.r:33 2: quasi_label(enquo(expected), expected.label) 3: eval_bare(get_expr(quo), get_env(quo))
── 2. Failure: Test network kernel calculation and dimension (@test_kernel.r#18) dim(net_kernel@kernel) not equal to net_kernel@kernel. Lengths differ: 2 is not 2500
══ testthat results ═══════════════════════════════════════════════════════════ OK: 13 SKIPPED: 0 FAILED: 2
Failure: Test network kernel calculation and dimension (@test_kernel.r#18)
Error: testthat unit tests failed Execution halted
Currently, no tests other than examples in the manual are part of the package. These examples only cover about 40% of the lines of code. There is a branch kangar00/testKangar00 which was started to add tests but is in a very rudimentary state.
Would it be possible to extend the tests? Would it be possible to merge (copy) the tests to the current master branch?
Overall it would be good to reach a much higher percentage of code coverage (as shown in the README.md on the startpage of kangar00).