-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: TODO tests #234
Comments
The
And have the result be a warning that displays the argument... |
I'd be fine with the summary reporter displaying the location of skipped tests (if no failures or errors occur). Or would a dedicated reporter be better? |
Rather than having extra code in the test to say that the thing to be tested isn't ready yet, it seems to make more sense (to me at least) that the function uses From a test-driven-development point of view this seems semantically more correct. The test should fail because the code isn't correct, but you still have the information there to report a sensible reason as to why it failed. |
I've looked in #343, but I don't see how this supports marking certain tests as TODO. Is there a writeup of it somewhere else? @richierocks It's not always feasible or even desirable to handle it in the package side. For example, you may have a bug and written a test for it that currently fails, but have no idea where the bug sits in the package. Specifying the TODO semantics in the tests is a good way to define the desired behavior even before you know how/where you're going to implement it. |
If you call |
Oh okay, thanks @krlmlr . |
In Perl's TAP testing framework, the developer can mark certain tests as "TODO", which are useful when you know what the correct result should be, but the code doesn't produce it yet:
Could this be added to the various
expect_*
andis_*
functions, perhaps as an extratodo
argument, or maybe as astyle=c('test','todo','skip')
argument that allows different options (to prevent future arg proliferation)?The text was updated successfully, but these errors were encountered: