We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f92e7 commit eed24f0Copy full SHA for eed24f0
R/reporter-stop.R
@@ -56,14 +56,9 @@ StopReporter <- R6::R6Class(
56
57
if (self$praise && self$n_fail == 0 && self$n_success > 0) {
58
emoji <- praise_emoji()
59
- self$cat_line(
60
- "Test ",
61
- colourise("passed", "success"),
62
- " with ",
63
- self$n_success,
64
- " successes ",
65
- emoji
66
- )
+ self$cat_line(cli::format_inline(
+ "Test passed with {self$n_success} success{?es} {emoji}."
+ ))
67
}
68
69
if (self$n_fail > 0) {
tests/testthat/_snaps/reporter-stop.md
@@ -1,6 +1,6 @@
1
# produces useful output
2
3
- Test passed with 1 successes
+ Test passed with 1 success .
4
-- Failure ('reporters/tests.R:13:3'): Failure:1 -------------------------------
5
Expected `x` to be TRUE.
6
Differences:
0 commit comments