Skip to content
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

Proposal: Dataproviders #1177

Closed
ThirtySomething opened this issue Feb 7, 2018 · 2 comments
Closed

Proposal: Dataproviders #1177

ThirtySomething opened this issue Feb 7, 2018 · 2 comments

Comments

@ThirtySomething
Copy link

Please excuse my contribution if this is the wrong place.

I have used Catch in some projects, but I haven't had much experience with it. Sometimes it seemed a bit awkward to me, for example when I wanted to run a test with several different values.

In PHPUnit there is the concept of data providers. Is something similar possible for Catch? Or did I not understand a part of Catch correctly? Then I'm grateful for tips.

@horenmar
Copy link
Member

horenmar commented Feb 8, 2018

Catch Classic used to implement generators, but they were never documented or officially supported because the old implementation did not work together with sections.

We have an aggregation issue for this request, #850, and it is definitely on the map, but it has to work properly with sections before it is included in Catch2.

@ThirtySomething
Copy link
Author

Oh, I didn't know about the generators in the first version of Catch. Thanks for the reference to #850. If it suits you, I'll close this issue - as you note it in there. I fully understand the decision to implement the generators only with C++11 or even C++14. I have worked on a larger project in the past and could not use C++11. This has made things more complicated and difficult.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants