Skip to content

Commit

Permalink
Warn on partial matching in tests & run tests in parallel (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo authored Aug 1, 2023
1 parent e4d4bd4 commit 724ce0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Suggests:
VignetteBuilder:
knitr
Config/testthat/edition: 3
Config/testthat/parallel: true
Config/Needs/website:
epiverse-trace/epiversetheme
Encoding: UTF-8
Expand Down
7 changes: 7 additions & 0 deletions tests/testthat/setup-options.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# We want to flag partial matching as part of our testing & continuous
# integration process because it makes code more brittle.
options(
warnPartialMatchAttr = TRUE,
warnPartialMatchDollar = TRUE,
warnPartialMatchArgs = TRUE
)

0 comments on commit 724ce0d

Please sign in to comment.