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

Add doctest_discover_tests() #236

Merged
merged 1 commit into from May 19, 2019
Merged

Conversation

reddwarf69
Copy link
Contributor

Heavily inspired on
https://github.com/catchorg/Catch2/blob/7be35af167f969433d9775f6ddc5d294f69dd4b5/docs/cmake-integration.md#catchcmake-and-catchaddtestscmake

Probably it shouldn't be merged as it is, I'm far from a cmake expert. But I didn't know how to discuss it in #171 without actually creating the branch.

@reddwarf69
Copy link
Contributor Author

I had tried the script directly from my project, as was when I was developing it, but hadn't tried it after integrating it with the doctest installation.
I have updated the PR so CMAKE_MODULE_PATH now points to the scripts installation directory and users can just do include(doctest) to be able to use doctest_discover_tests().

@onqtam onqtam merged commit 9a50e80 into doctest:dev May 19, 2019
@onqtam
Copy link
Member

onqtam commented May 19, 2019

decided to merge it now and review it later. Thanks for the contribution! I'll test it and probably document it in markdown somewhere.

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

Successfully merging this pull request may close these issues.

None yet

2 participants