-
Notifications
You must be signed in to change notification settings - Fork 6
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
JOSS review - Automated tests #13
Comments
Package conflicts:You are right, that was a mistake, however as the dtrackr methods add S3 methods on top of the Documentation:Sorry that was an effort to set up. I've added a section in the README about running the tests and the CI setup with github workflows. Coverage:One of the so far little used functions in the In terms of the other coverage, test_check checks the testthat unit tests only. For 'dtrackr' a lot of the automated testing functionality is in the examples in the man pages which are run when a When the 3 types of test are combined together the coverage is much improved: covr::package_coverage(type="all")
# dtrackr Coverage: 79.50%
# R/dot.R: 78.12%
# R/dtrackr.R: 79.63% I've included the man page ✔ | 51 | examples [17.6 s]
✔ | 2 | group_by [1.7 s]
✔ | 11 | p_comment [2.4 s]
✔ | 7 | p_exclude [2.3 s]
✔ | 5 | p_group_modify [1.4 s]
✔ | 5 | p_include [2.2 s]
✔ | 4 | p_others [1.5 s]
✔ | 5 | p_status [2.1 s]
══ Results ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Duration: 31.3 s
[ FAIL 0 | WARN 0 | SKIP 0 | PASS 90 ]
WHOA - stupendous code. Some of the functions that are not tested are very thin wrappers around the I'll work towards integrating the |
Updated branch: joss-fixes-0.2.4.9000 (and main) As I implemented a new set of functionality for #14 I also extended the functional testing (in the form of additional examples). This has pushed coverage up a bit: covr::package_coverage(type=“all”): dtrackr Coverage: 83.60%, R/dot.R: 78.12%, R/dtrackr.R: 84.08% |
Revised branch: joss-fixes-0.2.4.9000 Everything works for me as described above and in #12 (comment). Not a big deal, but you could easily add the covr command to the README, since it works now with a single additional dependency. |
Just to update on this I found out the right magic incantation to get the |
Review issue: openjournals/joss-reviews#4707
Branch reviewed: release-0.2.4
Problem
JOSS strongly recommends using Automated tests, which this repo supports through the use of
testthat
and Github actions. I expect that the current implementation meets this requirement, but do have some comments:Test Coverage
I'm not very familiar with R test automation, but I was able to combine
testthat
withcovr
to get a brief coverage report:Without looking at the test implementations in detail, this suggests that not all of the
dtrackr
functions are currently tested. JOSS makes no recommendations for automated test coverage rates.Package conflicts
The test output shows conflicts between
dplyr
anddtrackr
functions. I may be misunderstanding, but shouldn'tdtrackr
be load aftertidyverse
to test the overriddendtrackr
methods?Documentation
It took a little effort to figure out how to run the automated tests. For a contributor or user, it might be helpful to have a section in the documentation briefly describing the test automation approach (testthat), Github action, as well as how to install and run locally (see my comment about dependencies in #12).
The text was updated successfully, but these errors were encountered: