Skip to content

datacamp/testwhat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Filip Schouwenaars
Mar 13, 2017
6da1384 · Mar 13, 2017
Mar 10, 2017
Jan 6, 2017
Mar 10, 2017
Mar 10, 2017
Mar 25, 2016
Jul 25, 2016
Sep 25, 2016
Mar 13, 2017
Mar 11, 2015
Mar 10, 2017
Feb 28, 2017
Mar 1, 2016

Repository files navigation

banner

Build Status codecov.io Rdoc

The testwhat package provides rich functionality to write Submission Correctness Tests for interactive R exercises on the DataCamp platform. The package is inspired by Hadley Wickham's testthat package, the standard for unit testing in R. For a detailed guide on how to use testwhat, head over to the wiki. To learn more about course creation for DataCamp, visit our Teach Documentation.

Documentation

Installation

library("devtools")
install_github("datacamp/testwhat")

Testing this package

Because testwhat depends on proprietary R packages, you can only run the tests on a system that has these packages installed. If you have the private codecov token, you can also upload the coverage results:

# Run the tests locally
devtools::test()

# Run only a part of the tests
devtools::test(filter = "test-object")

# Upload code coverage report to codecov.io
covr::codecov(token = "private_token")

For more details, questions and suggestions, you can contact learn-engineering@datacamp.com.