Skip to content

Commit 82d1a5d

Browse files
committed
Skip tests of compiled code on windows for version 4.1
1 parent 6629945 commit 82d1a5d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/testthat/test-Compiled.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
context("Compiled")
22
test_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

3335
test_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

4548
test_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

6064
test_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)

tests/testthat/test-tally_coverage.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
test_that("tally_coverage includes compiled code", {
22
skip_on_cran()
3+
skip_if(is_windows() && getRversion() == "4.1")
34

45
cov <- package_coverage(test_path("TestCompiled"))
56
tall <- tally_coverage(cov)

0 commit comments

Comments
 (0)