From 2f574d2821649905a514502476b50387fe90e7d4 Mon Sep 17 00:00:00 2001 From: richelbilderbeek Date: Mon, 8 Jul 2024 10:43:46 +0200 Subject: [PATCH 1/2] Improve codecov --- tests/testthat/test-check_beast2_path.R | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/testthat/test-check_beast2_path.R b/tests/testthat/test-check_beast2_path.R index 488aeb9..f2ab472 100644 --- a/tests/testthat/test-check_beast2_path.R +++ b/tests/testthat/test-check_beast2_path.R @@ -1,4 +1,10 @@ test_that("use", { + expect_silent( + check_beast2_path(get_beastier_path("some path that exists TODO")) + ) +}) + +test_that("abuse", { expect_error( check_beast2_path("abs.ent"), "File 'beast2_path' not found. Could not find file with path 'abs.ent'" From 98e9863d05256231ca9865f5f6cf81c85d207ffb Mon Sep 17 00:00:00 2001 From: richelbilderbeek Date: Mon, 8 Jul 2024 10:54:24 +0200 Subject: [PATCH 2/2] Improve codecov --- tests/testthat/test-check_input_filename.R | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/testthat/test-check_input_filename.R diff --git a/tests/testthat/test-check_input_filename.R b/tests/testthat/test-check_input_filename.R new file mode 100644 index 0000000..6152382 --- /dev/null +++ b/tests/testthat/test-check_input_filename.R @@ -0,0 +1,5 @@ +test_that("use", { + expect_silent( + check_input_filename(get_beastier_path("beast2_example_output.log")) + ) +})