--- title: "Tests and Coverage" date: "`r format(Sys.time(), '%d %B, %Y %H:%M:%S')`" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Tests and Coverage} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r setup, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>", eval = FALSE ) ``` - [Coverage](#coverage) - [Unit Tests](#unit-tests) This output is created by [covrpage](https://github.com/yonicd/covrpage). ## Coverage Coverage summary is created using the [covr](https://github.com/r-lib/covr) package. | Object | Coverage (%) | | :---------------------------- | :----------: | | details | 60.27 | | [R/engine.R](https://github.com/yonicd/details/blob/master/R/engine.R) | 0.00 | | [R/print.R](https://github.com/yonicd/details/blob/master/R/print.R) | 3.03 | | [R/parts.R](https://github.com/yonicd/details/blob/master/R/parts.R) | 80.00 | | [R/read.R](https://github.com/yonicd/details/blob/master/R/read.R) | 85.71 | | [R/device.R](https://github.com/yonicd/details/blob/master/R/device.R) | 88.24 | | [R/build.R](https://github.com/yonicd/details/blob/master/R/build.R) | 100.00 | | [R/details.R](https://github.com/yonicd/details/blob/master/R/details.R) | 100.00 | | [R/fold.R](https://github.com/yonicd/details/blob/master/R/fold.R) | 100.00 | | [R/use.R](https://github.com/yonicd/details/blob/master/R/use.R) | 100.00 |
## Unit Tests Unit Test summary is created using the [testthat](https://github.com/r-lib/testthat) package. | file | n | time | error | failed | skipped | warning | | :------------------------------------------ | -: | ----: | ----: | -----: | ------: | ------: | | [test-basic.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-basic.R) | 6 | 0.053 | 0 | 0 | 0 | 0 | | [test-collapse.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-collapse.R) | 3 | 0.004 | 0 | 0 | 0 | 0 | | [test-device.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-device.R) | 5 | 0.910 | 0 | 0 | 0 | 0 | | [test-use.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-use.R) | 9 | 0.047 | 0 | 0 | 0 | 0 | | [test-utils.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-utils.R) | 5 | 0.005 | 0 | 0 | 0 | 0 |
Show Detailed Test Results | file | context | test | status | n | time | | :-------------------------------------------------- | :---------- | :------------------------------ | :----- | -: | ----: | | [test-basic.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-basic.R#L6_L9) | basic | basic: empty | PASS | 1 | 0.020 | | [test-basic.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-basic.R#L13_L16) | basic | basic: object | PASS | 1 | 0.013 | | [test-basic.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-basic.R#L20_L23) | basic | basic: dots | PASS | 1 | 0.011 | | [test-basic.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-basic.R#L27_L30) | basic | basic: file | PASS | 1 | 0.004 | | [test-basic.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-basic.R#L34_L37) | basic | basic: non file singleton | PASS | 1 | 0.002 | | [test-basic.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-basic.R#L41_L44) | basic | basic: no lang | PASS | 1 | 0.003 | | [test-collapse.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-collapse.R#L6_L9) | fold | fold methods: close | PASS | 1 | 0.001 | | [test-collapse.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-collapse.R#L13_L16) | fold | fold methods: open default | PASS | 1 | 0.001 | | [test-collapse.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-collapse.R#L20_L23) | fold | fold methods: open with summary | PASS | 1 | 0.002 | | [test-device.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-device.R#L16) | device | using device: device flag | PASS | 1 | 0.011 | | [test-device.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-device.R#L20) | device | using device: device png | PASS | 1 | 0.002 | | [test-device.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-device.R#L26) | device | using device: device upload | PASS | 1 | 0.889 | | [test-device.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-device.R#L43) | device | local device: image created | PASS | 1 | 0.003 | | [test-device.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-device.R#L47) | device | local device: env flag reset | PASS | 1 | 0.005 | | [test-use.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-use.R#L8_L10) | use details | bad path: imports | PASS | 1 | 0.006 | | [test-use.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-use.R#L20_L23) | use details | default: imports | PASS | 1 | 0.005 | | [test-use.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-use.R#L27_L30) | use details | default: RdMacros | PASS | 1 | 0.005 | | [test-use.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-use.R#L35_L38) | use details | default: Roxygen | PASS | 1 | 0.005 | | [test-use.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-use.R#L50_L53) | use details | single fields: imports | PASS | 1 | 0.006 | | [test-use.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-use.R#L61_L64) | use details | single fields: RdMacros | PASS | 1 | 0.005 | | [test-use.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-use.R#L72_L75) | use details | single fields: Roxygen | PASS | 1 | 0.005 | | [test-use.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-use.R#L83_L86) | use details | single fields: Roxygen FALSE | PASS | 1 | 0.005 | | [test-use.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-use.R#L102) | use details | import: imports empty | PASS | 1 | 0.005 | | [test-utils.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-utils.R#L6_L9) | utilities | utilities: tooltip default | PASS | 1 | 0.001 | | [test-utils.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-utils.R#L13_L16) | utilities | utilities: tooltip with text | PASS | 1 | 0.001 | | [test-utils.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-utils.R#L21_L24) | utilities | utilities: summary default | PASS | 1 | 0.001 | | [test-utils.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-utils.R#L28_L31) | utilities | utilities: state open | PASS | 1 | 0.001 | | [test-utils.R](https://github.com/yonicd/details/blob/master/tests/testthat/test-utils.R#L35_L38) | utilities | utilities: state closed | PASS | 1 | 0.001 |
Session Info | Field | Value | | | :------- | :---------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Version | R version 3.6.3 (2020-02-29) | | | Platform | x86\_64-apple-darwin15.6.0 (64-bit) | ![](https://github.com/yonicd/covrpage/blob/actions/inst/logo/gh.png?raw=true) | | Running | macOS Catalina 10.15.7 | | | Language | en\_US | | | Timezone | UTC | | | Package | Version | | :------- | :------ | | testthat | 3.0.1 | | covr | 3.3.2 | | covrpage | 0.1 |