Switch to doctest over Catch for unit tests.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-09-29 18:04:06 +02:00
parent f9eade32db
commit 9a91d356e0
18 changed files with 6003 additions and 17635 deletions

View File

@@ -1,5 +1,5 @@
#ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp"
#include "../../../../extern/doctest.hpp"
#include "../../../../src/Battling/Pokemon/CreatePokemon.hpp"
#include "../../../../src/ScriptResolving/AngelScript/AngelScriptResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp"

View File

@@ -1,5 +1,5 @@
#ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp"
#include "../../../../extern/doctest.hpp"
#include "../../../../src/ScriptResolving/AngelScript/AngelScriptResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp"

View File

@@ -1,5 +1,5 @@
#ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp"
#include "../../../../extern/doctest.hpp"
#include "../../../../src/ScriptResolving/AngelScript/AngelScriptResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp"

View File

@@ -1,5 +1,5 @@
#ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp"
#include "../../../../extern/doctest.hpp"
#include "../../../../src/ScriptResolving/AngelScript/AngelScriptResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp"
@@ -92,7 +92,7 @@ TEST_CASE("Validate Move Category in Script") {
data.Context->SetArgDWord(1, (asDWORD)move->GetCategory());
auto result = data.Context->Execute();
INFO("exception: " << data.Context->GetExceptionString())
INFO("exception: " << data.Context->GetExceptionString());
REQUIRE(result == asEXECUTION_FINISHED);
REQUIRE((bool)data.Context->GetReturnByte());
}

View File

@@ -1,5 +1,5 @@
#ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp"
#include "../../../../extern/doctest.hpp"
#include "../../../../src/ScriptResolving/AngelScript/AngelScriptResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp"

View File

@@ -1,5 +1,5 @@
#ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp"
#include "../../../../extern/doctest.hpp"
#include "../../../../src/ScriptResolving/AngelScript/AngelScriptResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp"