-
Notifications
You must be signed in to change notification settings - Fork 5
/
tests_and_coverage.Rmd
108 lines (91 loc) · 7.14 KB
/
tests_and_coverage.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
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
)
```
<!--- Placeholder for tests/README.md Do Not Edit--->
- <a href="#coverage" id="toc-coverage">Coverage</a>
- <a href="#unit-tests" id="toc-unit-tests">Unit Tests</a>
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 (%) |
|:----------------------------------------------------|:------------:|
| carbonate | 51.46 |
| [R/carbonate.R](https://github.com/yonicd/carbonate/blob/cran_update/R/carbonate.R) | 0.00 |
| [R/selenium_functions.R](https://github.com/yonicd/carbonate/blob/cran_update/R/selenium_functions.R) | 20.00 |
| [R/uri_functions.R](https://github.com/yonicd/carbonate/blob/cran_update/R/uri_functions.R) | 38.60 |
| [R/carbon.R](https://github.com/yonicd/carbonate/blob/cran_update/R/carbon.R) | 60.61 |
| [R/helpers.R](https://github.com/yonicd/carbonate/blob/cran_update/R/helpers.R) | 76.64 |
| [R/set_get_functions.R](https://github.com/yonicd/carbonate/blob/cran_update/R/set_get_functions.R) | 100.00 |
<br>
## Unit Tests
Unit Test summary is created using the
[testthat](https://github.com/r-lib/testthat) package.
| file | n | time | error | failed | skipped | warning | icon |
|:------------------------------------|----:|------:|------:|-------:|--------:|--------:|:-----|
| [test-port.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-port.R) | 3 | 0.116 | 0 | 0 | 0 | 0 | |
| [test-set.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-set.R) | 3 | 0.812 | 0 | 0 | 0 | 0 | |
| [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R) | 8 | 1.257 | 0 | 0 | 2 | 0 | 🔶 |
| [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R) | 6 | 2.591 | 0 | 0 | 0 | 0 | |
<details open>
<summary>
Show Detailed Test Results
</summary>
| file | context | test | status | n | time | icon |
|:----------------------------------------|:--------|:-----------------------------------------|:--------|----:|------:|:-----|
| [test-port.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-port.R#L9) | port | port: init | PASS | 1 | 0.105 | |
| [test-port.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-port.R#L14) | port | port: reset | PASS | 1 | 0.008 | |
| [test-port.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-port.R#L19) | port | port: manual | PASS | 1 | 0.003 | |
| [test-set.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-set.R#L8) | set\_ | set functions: set_template | PASS | 1 | 0.464 | |
| [test-set.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-set.R#L13) | set\_ | set functions: set_font_family | PASS | 1 | 0.346 | |
| [test-set.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-set.R#L18) | set\_ | set functions: set_windows_control_theme | PASS | 1 | 0.002 | |
| [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L9) | uri | options: benchmark | PASS | 1 | 0.248 | |
| [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L17) | uri | uri: benchmark | PASS | 1 | 0.234 | |
| [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L21) | uri | uri: 200 | PASS | 1 | 0.416 | |
| [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L27) | uri | encode: encode character | PASS | 1 | 0.002 | |
| [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L31) | uri | encode: no encode character | PASS | 1 | 0.002 | |
| [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L37) | uri | tiny: valid tiny | SKIPPED | 1 | 0.002 | 🔶 |
| [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#L43) | uri | tiny: clipboard | SKIPPED | 1 | 0.014 | 🔶 |
| [test-uri.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-uri.R#) | uri | bad template: error uri | PASS | 1 | 0.339 | |
| [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L24) | yml | yaml fields: rgba | PASS | 1 | 0.515 | |
| [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L29) | yml | yaml fields: template | PASS | 1 | 0.457 | |
| [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L34) | yml | yaml fields: bad font family | PASS | 1 | 0.428 | |
| [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L39) | yml | yaml fields: pv | PASS | 1 | 0.592 | |
| [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L44) | yml | yaml fields: ph | PASS | 1 | 0.597 | |
| [test-yml.R](https://github.com/yonicd/carbonate/blob/cran_update/tests/testthat/test-yml.R#L59) | yml | namesless palette: fill in palette | PASS | 1 | 0.002 | |
| Failed | Warning | Skipped |
|:-------|:--------|:--------|
| 🛑 | ⚠️ | 🔶 |
</details>
<details>
<summary>
Session Info
</summary>
| Field | Value |
|:---------|:---------------------------------|
| Version | R version 4.2.1 (2022-06-23) |
| Platform | x86_64-apple-darwin17.0 (64-bit) |
| Running | macOS Big Sur 11.6 |
| Language | en_US |
| Timezone | America/New_York |
| Package | Version |
|:---------|:--------|
| testthat | 3.1.4 |
| covr | 3.5.1 |
| covrpage | 0.1 |
</details>
<!--- Final Status : skipped/warning --->