Comments (3)
@mmuurr I agree this looks like a {testthat} bug. For some reason that class of error is not caught. FWIW I might simplify/tighten your workaround as follows:
expect_s3_class(tryCatch(f(), stackOverflowError=identity), "error")
from testthat.
Related Issues (20)
- Allow a global option to supress messages when using testthat HOT 2
- expect_equal does not print values of vectors when sizes differ HOT 1
- expect_error and friends report unused arguments for `fixed` when used interactively but not when used non-interactively HOT 1
- Snapshot differences on Mac/Windows/Ubuntu HOT 1
- snapshot test fails and requests edition3 when it is in package setup, fails as well if local_edition() is switched to edition3 HOT 1
- Add examples how to mock objects HOT 2
- Mitigate linebreak issues in snapshot tests HOT 2
- Extend `variant` in snapshot testing
- Enable custom snapshot file name HOT 1
- local_mocked_bindings shows different behaviour devtools::test() vs command line , github, devtools::check HOT 2
- `test_dir()` missing from reference index on the website
- FR: Provide a way to run unit tests in random order HOT 1
- Snapshot failures shouldn't cause max failures cancellation? HOT 1
- Guide for mocking `interactive` HOT 2
- Deprecated advice for expect_equivalent() is not equivalent HOT 1
- CRAN noSuggests enforcement affects C++ Catch through `xml2`.
- Support compressed snapshot files
- Accurate position of messages in test log
- Expect equality using `==`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testthat.