-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Multiple-inputs test case macro #358
Comments
This essentially what Generators are (which are an unfinished, undocumented, feature in Catch - so I'm not suggested you should use them - or even know about them!). I have some work on a local branch that moves Generators forward a bit but they are still a little way off an official inclusion. For now take a look at https://github.com/philsquared/Catch/blob/master/projects/SelfTest/GeneratorTests.cpp to get an idea of the direction I'm going with it. |
Any ETAs/progress status on this feature in your branch? I need this and have time to help :) |
I don't have an ETA, I'm afraid. |
I'm closing this issue in favour of a dedicated generators/ property based testing ticket, #850. |
Hello.
I've started to use Catch lately and came up with an idea of some useful test case macroses. Something similiar to GoogleTest value-parameterized tests, but much more lightweight (as Catch is, compared to GoogleTest, too).
These macros can be used to declare test cases, which should be run multiple times - once per each item of some input array (or two arrays in an all matches combination).
To allow something like that:
I've already implemented this and can work up on the docs (also, on any changes/imporevements yoi can think of) and make a pull request if you are interested.
References:
The text was updated successfully, but these errors were encountered: