Use modern cmake testing functionality including catch integration

This commit is contained in:
Jonny Paton 2018-08-19 19:04:11 +01:00 committed by Lukas Dürrenberger
parent a88e854dc3
commit d3a072fb63
8 changed files with 361 additions and 23 deletions

View file

@ -1,2 +0,0 @@
#define CATCH_CONFIG_MAIN
#include <catch.hpp>

View file

@ -1,3 +1,5 @@
#define CATCH_CONFIG_MAIN
#include <SFML/Graphics/Rect.hpp>
#include <SFML/System/Vector2.hpp>
#include "TestUtilities/Graphics.hpp"

View file

@ -1,3 +1,5 @@
#define CATCH_CONFIG_MAIN
#include <SFML/System/Vector2.hpp>
#include "TestUtilities/System.hpp"

10
test/src/Window.cpp Normal file
View file

@ -0,0 +1,10 @@
#define CATCH_CONFIG_MAIN
#include <SFML/Graphics/Rect.hpp>
#include <SFML/System/Vector2.hpp>
#include "TestUtilities/Window.hpp"
TEST_CASE("Window unit test exists", "[window]")
{
CHECK(TRUE);
}