Use modern cmake testing functionality including catch integration
This commit is contained in:
parent
a88e854dc3
commit
d3a072fb63
8 changed files with 361 additions and 23 deletions
|
@ -1,2 +0,0 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch.hpp>
|
|
@ -1,3 +1,5 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
|
||||
#include <SFML/Graphics/Rect.hpp>
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
#include "TestUtilities/Graphics.hpp"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
#include "TestUtilities/System.hpp"
|
||||
|
||||
|
|
10
test/src/Window.cpp
Normal file
10
test/src/Window.cpp
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue