Skip to content

Commit

Permalink
tests moved to generic CI skip
Browse files Browse the repository at this point in the history
  • Loading branch information
antagomir committed Nov 22, 2020
1 parent cd60b5d commit 5895042
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions inst/extras/document.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ build_site()
# test() # Run tests
# run_examples()

# Add Github actions (Travis replacement)
#usethis::use_github_action_check_standard()
# -> .github/workflows/..
# See https://github.com/r-lib/actions

# Vignettes:
#
# library(knitr)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_bibliography.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ context("bibliography")

test_that("Bibentry gives correct results",{
skip_on_cran()
skip_on_travis()
skip_on_ci()
expect_equal(
class (get_bibentry ( code = c("sts_inpr_a", "nama_10_gdp"),
keywords = list ( c("production", "industry"),
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test_that("get_eurostat works with multi-frequency",{

test_that("get_eurostat return right classes",{
skip_on_cran()
skip_on_travis()
skip_on_ci()
expect_true(all(c("character", "numeric") %in%
sapply(get_eurostat("road_eqr_trams"), class)))
expect_true(all(c("character", "numeric") %in%
Expand All @@ -25,7 +25,7 @@ test_that("get_eurostat return right classes",{

test_that("get_eurostat handles daily data", {
skip_on_cran()
skip_on_travis()
skip_on_ci()
dat1 <- get_eurostat("ert_bil_eur_d",
filters = list(currency = "ARS", statinfo ="AVG",
time = c("2017M03D09", "2017M03D10")),
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test_json.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ context("json")

test_that("Get json data",{
skip_on_cran()
skip_on_travis()
skip_on_ci()
expect_named(get_eurostat_json("nama_10_gdp", filters = list(geo = "FI",
na_item = "B1GQ",
unit = "CLV_I10")),
Expand All @@ -12,7 +12,7 @@ test_that("Get json data",{

test_that("Handle numbers in filter name",{
skip_on_cran()
skip_on_travis()
skip_on_ci()
expect_named(get_eurostat(id = "sts_inpr_a", filters = list(geo = "AT",
nace_r2 = "B",
s_adj = "CA",
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_regional.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test_regional_codes <- data.frame (
test_that("Recoding gives correct results",{

skip_on_cran()
skip_on_travis()
skip_on_ci()

test_harmonized <- harmonize_geo_code(test_regional_codes)

Expand Down

0 comments on commit 5895042

Please sign in to comment.