Skip to content

Commit

Permalink
maybe fix: r-lib/testthat#86 ?
Browse files Browse the repository at this point in the history
  • Loading branch information
odinuv committed Jan 26, 2016
1 parent 3de0bba commit 6112b51
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
library(testthat)

KBC_DATA_DIR = '../data/'

# override with config if any
if (file.exists("config.R")) {
source("config.R")
}

# override with environment if any
if (nchar(Sys.getenv("KBC_DATA_DIR")) > 0) {
KBC_DATA_DIR <- Sys.getenv("KBC_DATA_DIR")
}

test_check("keboola.r.transformation")
library(testthat)
Sys.setenv("R_TESTS" = "")

KBC_DATA_DIR = '../data/'

# override with config if any
if (file.exists("config.R")) {
source("config.R")
}

# override with environment if any
if (nchar(Sys.getenv("KBC_DATA_DIR")) > 0) {
KBC_DATA_DIR <- Sys.getenv("KBC_DATA_DIR")
}

test_check("keboola.r.transformation")

0 comments on commit 6112b51

Please sign in to comment.