Skip to content

Commit 01d13c4

Browse files
committed
Use tinytest instead of testthat
1 parent a2830d0 commit 01d13c4

File tree

6 files changed

+14
-23
lines changed

6 files changed

+14
-23
lines changed

DESCRIPTION

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,20 @@ License: GPL (>= 3)
1010
URL: https://archaeostat.github.io/archaeocal/
1111
BugReports: https://github.com/ArchaeoStat/ArchaeoCal/issues
1212
Imports:
13-
arkhe (>= 1.4.0),
13+
arkhe (>= 1.9.0),
1414
graphics,
1515
grDevices,
1616
methods,
1717
V8
1818
Suggests:
1919
knitr,
2020
markdown,
21-
testthat (>= 3.0.0)
21+
tinytest
2222
VignetteBuilder:
2323
knitr
24-
Config/testthat/edition: 3
2524
Encoding: UTF-8
2625
Roxygen: list(markdown = TRUE)
27-
RoxygenNote: 7.2.3
26+
RoxygenNote: 7.3.2
2827
Collate:
2928
'AllClasses.R'
3029
'AllGenerics.R'

inst/tinytest/test-oxcal_configure.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if (at_home()) {
2+
## Check that OxCal configure works properly
3+
expect_error(oxcal_configure(ask = TRUE), "Could not find OxCal")
4+
}

man/ArchaeoCal-package.Rd

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat.R

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/testthat/test-oxcal_configure.R

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/tinytest.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if (requireNamespace("tinytest", quietly = TRUE)) {
2+
## Force tests to be executed if in dev release
3+
## (which we define as having a sub-release)
4+
NOT_CRAN <- length(unclass(packageVersion("ArchaeoCal"))[[1]]) == 4
5+
6+
tinytest::test_package("ArchaeoCal", at_home = NOT_CRAN)
7+
}

0 commit comments

Comments
 (0)