aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt25
-rw-r--r--test/src/UriTests.cpp15
2 files changed, 40 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
index 0000000..7c3eb76
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1,25 @@
+# CMakeLists.txt for UriTests
+#
+# © 2018 by Richard Walters
+
+cmake_minimum_required(VERSION 3.8)
+set(This UriTests)
+
+set(Sources
+ src/UriTests.cpp
+)
+
+add_executable(${This} ${Sources})
+set_target_properties(${This} PROPERTIES
+ FOLDER Tests
+)
+
+target_link_libraries(${This} PUBLIC
+ gtest_main
+ Uri
+)
+
+add_test(
+ NAME ${This}
+ COMMAND ${This}
+)
diff --git a/test/src/UriTests.cpp b/test/src/UriTests.cpp
new file mode 100644
index 0000000..3cb5336
--- /dev/null
+++ b/test/src/UriTests.cpp
@@ -0,0 +1,15 @@
+/**
+ * @file UriTests.cpp
+ *
+ * This module contains the unit tests of the Uri::Uri class.
+ *
+ * © 2018 by Richard Walters
+ */
+
+#include <gtest/gtest.h>
+#include <Uri/Uri.hpp>
+
+TEST(UriTests, Placeholder) {
+ Uri::Uri uri;
+ ASSERT_TRUE(true);
+}