Skip to content

Commit

Permalink
added skipping test for mzdata and higher mzR versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
hechth committed Jul 9, 2024
1 parent 5b9cf8c commit 24fe08e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-load.lcms.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ create_test_case <- function(filename, mz_length, rt_length, intensities_length)
patrick::with_parameters_test_that(
"test load.lcms reads different file types",
{
if(packageVersion("mzR") >= "2.29.0" && tools::file_ext(filename) == "mzdata") {
print("mzR >= 2.29.0 no longer supports mzdata.")
skip()
}
# Arrange: Set up test inputs
testdata <- file.path("..", "testdata")
input_path <- file.path(testdata, "input", filename)
Expand Down

0 comments on commit 24fe08e

Please sign in to comment.