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

Does some equivalent features from google test exist here? #300

Closed
syaifulnizamyahya opened this issue Oct 10, 2019 · 2 comments
Closed

Comments

@syaifulnizamyahya
Copy link

Description

Does some equivalent features from google test exist here? Features like

  1. EXPECT_CALL
  2. testing::Test

Just trying this doctest. Very nice.

Oh by the way, do you have like a forum that I can ask? Not sure where to ask so I ask here.

@onqtam
Copy link
Member

onqtam commented Oct 10, 2019

unfortunately EXPECT_CALL is part of google mock. doctest doesn't provide any moching capabilities, but some mocking frameworks have been made to work with doctest - see here (and I guess google mock could be integrated).

about testing::Test - I guess that's the base class for creating fixtures - doctest supports those as well but it also provides a better way of sharing setup and teardown code called subcases.

Github issues are fine for such questions but you could also make use of our gitter channel.

Let me know if this answers your questions :)

@syaifulnizamyahya
Copy link
Author

Thank you for answering my question and providing alternatives.

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

No branches or pull requests

2 participants