Skip to content

Commit

Permalink
only check R files in the list of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertASmith committed Mar 7, 2024
1 parent 81eebc0 commit bf47319
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/test_finder.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ find_function_calls_in_folder <- function(test_folder,
v_test_file_paths <-
list.files(path = test_folder,
recursive = TRUE,
full.names = TRUE)
full.names = TRUE,
pattern = "\\.R$")

# find function names in all files in test folder
l_foo_test_paths <- lapply(X = v_test_file_paths,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
saveRDS(file = test_path("example_project", test_path("fixtures", "useful_thing1.rds")),
object = mtcars)

Binary file not shown.

0 comments on commit bf47319

Please sign in to comment.