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

FR: Documentation: FAQ: Add sectoin 'multiple files' #526

Closed
DarkTrick opened this issue Jul 28, 2021 · 2 comments
Closed

FR: Documentation: FAQ: Add sectoin 'multiple files' #526

DarkTrick opened this issue Jul 28, 2021 · 2 comments

Comments

@DarkTrick
Copy link

Background
I can't find a section on how to use use doctest with multiple test files. includeing the header in two files does apparently not work.

Feature Request
Add a FAQ section Compile with multiple files (or similar), where multiple files would be a search keyword for simple browser search.

@danielytics
Copy link

includeing the header in two files does apparently not work.

It works for me. I have a single source file containing

#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest.h>

and then every source file that has tests just uses #include <doctest.h> on its own.

@onqtam
Copy link
Member

onqtam commented Nov 5, 2021

fixed in dev - will publish a version soon

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

3 participants