Comments (2)
Since the utility of this function isn't very clear, here's a possible use case. It isn't life-changing, but I think it qualifies as a minor perk.
When you want to test a new function, it can be quite useful to write down all the tests that you can think of in one go. Rather than worrying about how each test needs to be implemented, you just want a placeholder that fails, in order to let you know that you haven't written that test yet. After you've decided upon each test, you can go back and replace the fails with real tests.
from testthat.
You could just stick a stop("Not done this yet")
in your test - that will show as an error rather than a failure in the test runner. Semantically I find the idea of a failure being conjured from thin air quite disturbing, whereas saying 'stop!' seems more natural. HMMV.
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
- Test for infinite recursion error? HOT 3
- 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.