Added testthat unit tests
@@ -42,9 +42,14 @@ requirements:
- minepy
test:
+ requires:
+ - r-testthat
+ source_files:
+ - tests/testthat/
+ - tests/testthat/testthat.R
commands:
- - $R -e "library('minerva')" # [not win]
- - "\"%R%\" -e \"library('minerva')\"" # [win]
+ - $R -e "library(minerva); library(testthat); test_file('tests/testthat/testthat.R')" # [not win]
+ - "\"%R%\" -e \"library(minerva); library(testthat); test_file('tests/testthat/testthat.R')\"" # [win]
about:
home: https://www.r-project.org, http://minepy.readthedocs.io/en/latest, http://www.exploredata.net
