You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -397,7 +397,7 @@
397
397
*`CheckReporter` now only records warnings when not on CRAN. Otherwise
398
398
failed CRAN revdep checks tend to be cluttered up with warnings (#1300).
399
399
It automatically cleans up `testthat-problems.rds` left over from previous
400
-
runs if the latest run is succesful (#1314).
400
+
runs if the latest run is successful (#1314).
401
401
402
402
*`expect_s3_class()` and `expect_s4_class()` can now check that an object
403
403
_isn't_ an S3 or S4 object by supplying `NA` to the second argument (#1321).
@@ -559,7 +559,7 @@ See `vignette("snapshotting")` for more details.
559
559
560
560
* Many reporters (e.g. the check reporter) no longer raise an error when any tests fail. Use the `stop_on_failure` argument to `devtools::test()` and `testthat::test_dir()` if your code relies on this. Alternatively, use `reporter = c("check", "fail")` to e.g. create a failing check reporter.
561
561
562
-
## Fixures
562
+
## Fixtures
563
563
564
564
* New `vignette("test-fixtures")` describes test fixtures; i.e. how to
565
565
temporarily and cleanly change global state in order to test parts of
@@ -664,7 +664,7 @@ This release mostly focusses on an overhaul of how testthat works with condition
664
664
implements the testthat protocol (signal with `stop()` if the
665
665
expectation is broken, with a `continue_test` restart).
666
666
667
-
* Existence of restarts is first checked before invokation. This makes
667
+
* Existence of restarts is first checked before invocation. This makes
668
668
it possible to signal warnings or messages with a different
669
669
condition signaller (#874).
670
670
@@ -835,7 +835,7 @@ This release mostly focusses on an overhaul of how testthat works with condition
835
835
*`CheckReporter`, used by R CMD check, now includes a count of warnings.
836
836
837
837
*`JUnitReporter` no longer replaces `.` in class names (#753), and
838
-
creates ouput that should be more compatible with Jenkins (#806, @comicfans).
838
+
creates output that should be more compatible with Jenkins (#806, @comicfans).
839
839
840
840
*`ListReporter` now records number of passed tests and original results in
841
841
new columns (#675).
@@ -846,7 +846,7 @@ This release mostly focusses on an overhaul of how testthat works with condition
846
846
recommend the use of `context()` and instead encourage you to delete it,
847
847
allowing the context to be autogenerated from the file name.
848
848
849
-
This also eliminates the error that occured if tests can before the
849
+
This also eliminates the error that occurred if tests can before the
850
850
first `context()` (#700, #705).
851
851
852
852
* Gains a `update_interval` parameter to control how often updates are
@@ -990,7 +990,7 @@ We have identified a useful family of expectations that compares the results of
990
990
991
991
*`expect_known_failure()` stored and compares the failure message from
992
992
an expectation. It's a useful regression test when developing informative
993
-
failure messges for your own expectations.
993
+
failure messages for your own expectations.
994
994
995
995
### Quasiquotation support
996
996
@@ -1069,7 +1069,7 @@ A new default reporter, `ReporterProgress`, produces more aesthetically pleasing
1069
1069
* New `LocationReporter` which just prints the location of every expectation.
1070
1070
This is useful for locating segfaults and C/C++ breakpoints (#551).
1071
1071
1072
-
* `SummaryReporter` recieved a number of smaller tweaks
1072
+
* `SummaryReporter` received a number of smaller tweaks
1073
1073
1074
1074
* Aborts testing as soon the limit given by the option
1075
1075
`testthat.summary.max_reports` (default 10) is reached (#520).
@@ -1227,7 +1227,7 @@ factor("a") %>%
1227
1227
(And to make this style even easier, testthat now re-exports the pipe, #412).
1228
1228
1229
1229
The exception to this rule are the expectations that evaluate (i.e.
1230
-
for messages, warnings, errors, output etc), which invisibly return `NULL`. These functions are now more consistent: using `NA` will cause a failure if there is a errors/warnings/mesages/output (i.e. they're not missing), and will `NULL` fail if there aren't any errors/warnings/mesages/output. This previously didn't work for `expect_output()` (#323), and the error messages were confusing with `expect_error(..., NA)` (#342, @nealrichardson + @krlmlr, #317).
1230
+
for messages, warnings, errors, output etc), which invisibly return `NULL`. These functions are now more consistent: using `NA` will cause a failure if there is a errors/warnings/messages/output (i.e. they're not missing), and will `NULL` fail if there aren't any errors/warnings/messages/output. This previously didn't work for `expect_output()` (#323), and the error messages were confusing with `expect_error(..., NA)` (#342, @nealrichardson + @krlmlr, #317).
1231
1231
1232
1232
Another change is that `expect_output()` now requires you to explicitly print the output if you want to test a print method: `expect_output("a", "a")` will fail, `expect_output(print("a"), "a")` will succeed.
1233
1233
@@ -1362,7 +1362,7 @@ The reporters system class has been considerably refactored to make existing rep
1362
1362
output, messages, warnings, and errors should be absent (#219).
1363
1363
1364
1364
* Praise gets more diverse thanks to the praise package, and you'll now
1365
-
get random encouragment if your tests don't pass.
1365
+
get random encouragement if your tests don't pass.
1366
1366
1367
1367
* testthat no longer muffles warning messages. If you don't want to see them
1368
1368
in your output, you need to explicitly quiet them, or use an expectation that
@@ -1398,7 +1398,7 @@ The reporters system class has been considerably refactored to make existing rep
1398
1398
1399
1399
# testthat 0.10.0
1400
1400
1401
-
* Failure locations are now formated as R error locations.
1401
+
* Failure locations are now formatted as R error locations.
1402
1402
1403
1403
* Add an 'invert' argument to `find_tests_scripts()`. This allows one to
1404
1404
select only tests which do _not_ match a pattern. (#239, @jimhester).
@@ -1458,7 +1458,7 @@ The reporters system class has been considerably refactored to make existing rep
1458
1458
## New features
1459
1459
1460
1460
* BDD: testhat now comes with an initial behaviour driven development (BDD)
1461
-
interface. The language is similiar to RSpec for Ruby or Mocha for JavaScript.
1461
+
interface. The language is similar to RSpec for Ruby or Mocha for JavaScript.
1462
1462
BDD tests read like sentences, so they should make it easier to understand
1463
1463
the specification of a function. See `?describe()` for further information
1464
1464
and examples.
@@ -1523,7 +1523,7 @@ tests.
1523
1523
1524
1524
The other big improvement to usability comes from @kforner, who contributed
1525
1525
code to allow the default results (i.e. those produced by `SummaryReporter`)
1526
-
to include source references so you can see exactly where failures occured.
1526
+
to include source references so you can see exactly where failures occurred.
0 commit comments