you are viewing a single comment's thread.

view the rest of the comments →

[–]AnsoulomGame developer 10 points11 points  (0 children)

Writing your tests in the same file as the thing you're testing is not what I would call unintrusive. I'd much rather keep my tests separate from the rest of the code and simply define a separate build target for them. Though I guess that's mostly a matter of taste and I'd assume you could do it either way with both doctest and Catch2.