CRAN
testthat 2.1.1
Unit Testing for R
Released Apr 23, 2019 by Hadley Wickham
Dependencies
rlang 0.4.0 magrittr 1.5 crayon 1.3.4 praise 1.0.0 cli 1.1.0 digest 0.6.19 withr 2.1.2 R6 2.4.0
Software testing is important, but, in part because it is frustrating and boring, many of us avoid it. 'testthat' is a testing framework for R that is easy learn and use, and integrates with your existing 'workflow'.
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies> <dependency> <groupId>org.renjin.cran</groupId> <artifactId>testthat</artifactId> <version>2.1.1-b2</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.cran:testthat')
Test Results
This package was last tested against Renjin 3.5-beta39 on Jul 11, 2019.
- capture_condition-examples
- capture_output-examples
- compare-examples
- comparison-expectations-examples
- context-examples
- describe-examples
- equality-expectations-examples
- evaluate_promise-examples
- expect_invisible-examples
- expect_known_output-examples
- expect_length-examples
- expect_match-examples
- expect_named-examples
- expect_null-examples
- expect_setequal-examples
- expect_that-examples
- expect_vector-examples
- inheritance-expectations-examples
- logical-expectations-examples
- make_expectation-examples
- output-expectations-examples
- quasi_label-examples
- skip-examples
- test-catch
- test_dir-examples
- test_file-examples
- test_that-examples
- testthat
- testthat-package-examples
- testthat_examples-examples
- try_again-examples