File tree Expand file tree Collapse file tree 4 files changed +15
-15
lines changed Expand file tree Collapse file tree 4 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 44 source_file(test_path("reporters/error-setup.R"), wrap = FALSE)
55 Condition
66 Error:
7- ! In path: " reporters/error-setup.R"
7+ ! In path: ' reporters/error-setup.R'.
88 Caused by error in `h()`:
99 ! !
1010
3232 filter_desc(code, "baz")
3333 Condition
3434 Error:
35- ! Failed to find test with specified description
35+ ! Failed to find test with specified description.
3636
3737# preserve srcrefs
3838
4949 filter_desc(code, "baz")
5050 Condition
5151 Error:
52- ! Found multiple tests with specified description
52+ ! Found multiple tests with specified description.
5353
Original file line number Diff line number Diff line change 33 Code
44 get_routine("utils", "no_such_routine")
55 Condition
6- Error:
7- ! failed to locate routine ' no_such_routine' in package ' utils'
6+ Error in `get_routine()` :
7+ ! Failed to locate routine ` no_such_routine` in package utils.
88
99# validates inputs
1010
Original file line number Diff line number Diff line change 33 Code
44 test_dir(test_path("test_dir"), reporter = "silent")
55 Condition
6- Error:
7- ! Test failures
6+ Error in `test_files_check()` :
7+ ! Test failures.
88
99# runs all tests and records output
1010
3333 test_dir(path)
3434 Condition
3535 Error in `test_dir()`:
36- ! No test files found
36+ ! No test files found.
3737
3838# can control if failures generate errors
3939
4040 Code
4141 test_error(stop_on_failure = TRUE)
4242 Condition
43- Error:
44- ! Test failures
43+ Error in `test_files_check()` :
44+ ! Test failures.
4545
4646# can control if warnings errors
4747
4848 Code
4949 test_warning(stop_on_warning = TRUE)
5050 Condition
51- Error:
52- ! Tests generated warnings
51+ Error in `test_files_check()` :
52+ ! Tests generated warnings.
5353
5454# complains if file doesn't exist
5555
5656 Code
5757 test_file("DOESNTEXIST")
5858 Condition
59- Error:
60- ! `path` does not exist
59+ Error in `test_file()` :
60+ ! `path` does not exist.
6161
Original file line number Diff line number Diff line change 44 verify_output(tempfile(), plot(1:10))
55 Condition
66 Error in `FUN()`:
7- ! Plots are not supported
7+ ! Plots are not supported.
88
You can’t perform that action at this time.
0 commit comments