2017-10-13 09:43:50 +02:00
|
|
|
// 000-CatchMain.cpp
|
|
|
|
|
2019-12-08 15:55:04 +01:00
|
|
|
// It is generally recommended to have a single file provide the main
|
|
|
|
// of a testing binary, and other test files to link against it.
|
2017-10-13 09:43:50 +02:00
|
|
|
|
|
|
|
// Let Catch provide main():
|
2020-03-30 10:34:21 +02:00
|
|
|
#include <catch2/internal/catch_default_main.hpp>
|
2017-10-13 09:43:50 +02:00
|
|
|
|
|
|
|
// That's it
|
|
|
|
|
|
|
|
// Compile implementation of Catch for use with files that do contain tests:
|
|
|
|
// - g++ -std=c++11 -Wall -I$(CATCH_SINGLE_INCLUDE) -c 000-CatchMain.cpp
|
|
|
|
// - cl -EHsc -I%CATCH_SINGLE_INCLUDE% -c 000-CatchMain.cpp
|