approvals / ApprovalTests.cpp

Native ApprovalTests for C++ on Linux, Mac and Windows
https://approvaltestscpp.readthedocs.io/en/latest/
Apache License 2.0
318 stars 51 forks source link

Support Existing doctest main #49

Closed claremacrae closed 4 years ago

claremacrae commented 4 years ago

I wanted this whilst working on some Qt test code, where I needed to set up a QApplication in main(), and use ApprovalTests, and this isn't yet possible, so I switched back to using Catch2 instead.

Documentation for how to implement this: https://github.com/onqtam/doctest/blob/master/doc/markdown/main.md

The implementation for this may be quite similar to that in #36

claremacrae commented 4 years ago

This was closed in #110