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
I used covr::report a few days ago for the first time and it worked as expected, very useful. I have since added some unit tests but I can't get package_coverage to work again. Every time I've ran it since the first time, it only returns results for cpp files, and they are always at 0%.
# run from within the package directory
> package_coverage()
dexter Coverage: 0.00%
src/ability.cpp: 0.00%
src/data.cpp: 0.00%
src/elsym.cpp: 0.00%
src/elsymBinom.cpp: 0.00%
src/enrm.cpp: 0.00%
src/enrmBayes.cpp: 0.00%
src/priors.cpp: 0.00%
src/progress.h: 0.00%
src/pv.cpp: 0.00%
src/shared.cpp: 0.00%
src/shared.h: 0.00%
src/simulation.cpp: 0.00%
Warning messages:
1: In readLines(source_file) :
incomplete final line found on 'C:/projects/dexter/src/shared.h'
2: In readLines(source_file) :
incomplete final line found on 'C:/projects/dexter/src/progress.h'
3: In readLines(source_file) :
incomplete final line found on 'C:/projects/dexter/src/shared.h'
4: In readLines(source_file) :
incomplete final line found on 'C:/projects/dexter/src/progress.h'
5: In readLines(source_file) :
incomplete final line found on 'C:/projects/dexter/src/shared.cpp'
I do have a tests/testthat.R file. It has not changed recently. I suspected there might be some left-over files from the first run of package_coverage but I can't find anything. Running with quiet=FALSE shows it does some compiling but it does not run any unit tests. The package builds without errors and devtools::test runs fine:
After a couple failures I updated R, re-installed all packages from Cran and tried again, no change. Do you have any pointers? If you have the time to look, the package is here: https://github.com/dexter-psychometrics/dexter
The text was updated successfully, but these errors were encountered:
Hi,
I used covr::report a few days ago for the first time and it worked as expected, very useful. I have since added some unit tests but I can't get package_coverage to work again. Every time I've ran it since the first time, it only returns results for cpp files, and they are always at 0%.
I do have a tests/testthat.R file. It has not changed recently. I suspected there might be some left-over files from the first run of package_coverage but I can't find anything. Running with quiet=FALSE shows it does some compiling but it does not run any unit tests. The package builds without errors and devtools::test runs fine:
After a couple failures I updated R, re-installed all packages from Cran and tried again, no change. Do you have any pointers? If you have the time to look, the package is here: https://github.com/dexter-psychometrics/dexter
The text was updated successfully, but these errors were encountered: