11context(" Compiled" )
22test_that(" Compiled code coverage is reported including code in headers" , {
33 skip_on_cran()
4+ skip_if(is_windows() && getRversion() == " 4.1" )
5+
46 cov <- as.data.frame(package_coverage(" TestCompiled" , relative_path = TRUE ))
57
68 simple_cc <- cov [cov $ filename == " src/simple.cc" , ]
@@ -32,6 +34,7 @@ test_that("Compiled code coverage is reported including code in headers", {
3234
3335test_that(" Can pass path to relative_path argument" , {
3436 skip_on_cran()
37+ skip_if(is_windows() && getRversion() == " 4.1" )
3538 cov <- as.data.frame(package_coverage(" TestCompiled" , relative_path = " ." ))
3639
3740 expect_true(all(unique(cov $ filename ) %in% c(
@@ -44,6 +47,7 @@ test_that("Can pass path to relative_path argument", {
4447
4548test_that(" Source code subdirectories are found" , {
4649 skip_on_cran()
50+ skip_if(is_windows() && getRversion() == " 4.1" )
4751 cov <- as.data.frame(package_coverage(" TestCompiledSubdir" , relative_path = TRUE ))
4852
4953 expect_equal(cov [cov $ first_line == " 9" , " value" ], 4 )
@@ -59,6 +63,7 @@ test_that("Source code subdirectories are found", {
5963
6064test_that(" Compiled code coverage is reported under non-standard char's" , {
6165 skip_on_cran()
66+ skip_if(is_windows() && getRversion() == " 4.1" )
6267 cov <- as.data.frame(package_coverage(" Test+Char/TestCompiled" , relative_path = TRUE ))
6368
6469 expect_equal(cov [cov $ first_line == " 9" , " value" ], 4 )
0 commit comments