-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtestthat_pkgdown.yml
More file actions
128 lines (112 loc) · 2.77 KB
/
testthat_pkgdown.yml
File metadata and controls
128 lines (112 loc) · 2.77 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
url: https://testthat.r-lib.org
development:
mode: auto
template:
package: tidytemplate
bootstrap: 5
includes:
in_header: |
<script src="https://cdn.jsdelivr.net/gh/posit-dev/supported-by-posit/js/badge.min.js" data-max-height="43" data-light-bg="#666f76" data-light-fg="#f9f9f9"></script>
<script defer data-domain="testthat.r-lib.org,all.tidyverse.org" src="https://plausible.io/js/plausible.js"></script>
home:
links:
- text: Learn more
href: http://r-pkgs.org/tests.html
reference:
- title: Basics
contents:
- test_that
- expect_equal
- expect_error
- expect_true
- title: Expectations
- subtitle: Values
contents:
- expect_all_equal
- expect_gt
- expect_length
- expect_match
- expect_named
- expect_null
- expect_setequal
- expect_type
- expect_vector
- subtitle: Side-effects
contents:
- expect_no_error
- expect_invisible
- expect_output
- expect_silent
- subtitle: Snapshot tests
contents:
- expect_snapshot
- expect_snapshot_value
- expect_snapshot_file
- starts_with("snapshot_")
- title: Test helpers
contents:
- is_testing
- extract_test
- local_edition
- local_reproducible_output
- set_state_inspector
- skip
- teardown_env
- try_again
- title: Run tests
contents:
- starts_with("test_")
- -test_that
- use_catch
- title: Mocking
contents:
- local_mocked_bindings
- local_mocked_s3_method
- local_mocked_r6_class
- mock_output_sequence
- title: Custom expectations
contents:
- fail
- expect_success
- title: Reporters
contents:
- ends_with("Reporter")
- -Reporter
articles:
- title: Setup and configuration
navbar: Setup
contents:
- third-edition
- parallel
- special-files
- custom-expectation
- title: Testing techniques
navbar: Techniques
contents:
- challenging-tests
- mocking
- skipping
- snapshotting
- test-fixtures
news:
releases:
- text: "Version 3.3.0"
href: https://www.tidyverse.org/blog/2025/11/testthat-3-3-0/
- text: "Version 3.2.0"
href: https://www.tidyverse.org/blog/2023/10/testthat-3-2-0/
- text: "Version 3.1.0"
href: https://www.tidyverse.org/blog/2021/10/testthat-3-1/
- text: "Version 3.0.0"
href: https://www.tidyverse.org/blog/2020/10/testthat-3-0-0/
- text: "Version 2.3.0"
href: https://www.tidyverse.org/blog/2019/11/testthat-2-3-0/
- text: "Version 2.1.0"
href: https://www.tidyverse.org/articles/2019/04/testthat-2-1-0/
- text: "Version 2.0.0"
href: https://www.tidyverse.org/articles/2017/12/testthat-2-0-0/
- text: "Version 1.0.0"
href: https://blog.rstudio.com/2016/04/29/testthat-1-0-0/
- text: "Version 0.10.0"
href: https://blog.rstudio.com/2015/05/29/testthat-0-10-0/
- text: "Version 0.9.0"
href: https://blog.rstudio.com/2014/09/23/testthat-0-9/