Website Summary Files Commits Branches @commit @diff @stats
path: root / tests
diff options
context:
space:
mode:
Commit9c0be0283c265cff286cadb5f7ddc7caf826c251 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-12 20:32:10 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-12 20:32:10 +0300
Files25bcaf91fb10b96e0fdad918a25aaeb9fdecb279 /tests
FMI-OOP-P1_TicketSystem-University-submission.tar
FMI-OOP-P1_TicketSystem-University-submission.tar.gz
FMI-OOP-P1_TicketSystem-University-submission.zip
Parent35831ff8dc30c9884a7c3340414f005a0d4ada10 (diff)
Added reworked how tests are built University-submission
8 files changed, 9 insertions, 6 deletions
-rw-r--r--tests/Tests_ALL.cpp9
-rw-r--r--tests/Tests_Command.h (renamed from tests/Tests_Command.cpp)1
-rw-r--r--tests/Tests_Date.h (renamed from tests/Tests_Date.cpp)1
-rw-r--r--tests/Tests_Event.h (renamed from tests/Tests_Event.cpp)0
-rw-r--r--tests/Tests_Hall.h (renamed from tests/Tests_Hall.cpp)1
-rw-r--r--tests/Tests_Reservation.h (renamed from tests/Tests_Reservation.cpp)1
-rw-r--r--tests/Tests_String.h (renamed from tests/Tests_String.cpp)1
-rw-r--r--tests/Tests_Ticket.h (renamed from tests/Tests_Ticket.cpp)1
diff --git a/tests/Tests_ALL.cpp b/tests/Tests_ALL.cpp
new file mode 100644
index 0000000..2252865
--- /dev/null
+++ b/tests/Tests_ALL.cpp
@@ -0,0 +1,9 @@
+#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
+#include "../doctest/doctest/doctest.h"
+#include "Tests_Command.h"
+#include "Tests_Date.h"
+#include "Tests_Event.h"
+#include "Tests_Hall.h"
+#include "Tests_Reservation.h"
+#include "Tests_String.h"
+#include "Tests_Ticket.h"
diff --git a/tests/Tests_Command.cpp b/tests/Tests_Command.h
index 6cac193..02325cd 100644
--- a/tests/Tests_Command.cpp
+++ b/tests/Tests_Command.h
@@ -1,5 +1,4 @@
#include <cstring>
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "../doctest/doctest/doctest.h"
#include "../src/Generic/ConsoleInterface/Command.h"
diff --git a/tests/Tests_Date.cpp b/tests/Tests_Date.h
index 77e381d..17878d9 100644
--- a/tests/Tests_Date.cpp
+++ b/tests/Tests_Date.h
@@ -1,5 +1,4 @@
#include <cstring>
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "../doctest/doctest/doctest.h"
#include "../src/Generic/Date/Date.h"
diff --git a/tests/Tests_Event.cpp b/tests/Tests_Event.h
index a27142a..a27142a 100644
--- a/tests/Tests_Event.cpp
+++ b/tests/Tests_Event.h
diff --git a/tests/Tests_Hall.cpp b/tests/Tests_Hall.h
index 5c3be7e..01e5979 100644
--- a/tests/Tests_Hall.cpp
+++ b/tests/Tests_Hall.h
@@ -1,4 +1,3 @@
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "../doctest/doctest/doctest.h"
#include "../src/Models/Hall.h"
diff --git a/tests/Tests_Reservation.cpp b/tests/Tests_Reservation.h
index ecb1efe..31efaf9 100644
--- a/tests/Tests_Reservation.cpp
+++ b/tests/Tests_Reservation.h
@@ -1,5 +1,4 @@
#include <cstring>
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "../doctest/doctest/doctest.h"
#include "../src/Models/Reservation.h"
diff --git a/tests/Tests_String.cpp b/tests/Tests_String.h
index 9f6d754..542b6d8 100644
--- a/tests/Tests_String.cpp
+++ b/tests/Tests_String.h
@@ -1,5 +1,4 @@
#include <cstring>
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "../doctest/doctest/doctest.h"
#include "../src/Generic/String/String.h"
diff --git a/tests/Tests_Ticket.cpp b/tests/Tests_Ticket.h
index 4d0be5c..fc1855c 100644
--- a/tests/Tests_Ticket.cpp
+++ b/tests/Tests_Ticket.h
@@ -1,4 +1,3 @@
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "../doctest/doctest/doctest.h"
#include "../src/Models/Ticket.h"