Cleanup of how tests are discovered. Prefix not needed or used.

This commit is contained in:
Ólafur Waage 2021-09-06 16:00:48 +02:00
parent 27517cdfa6
commit 4c47509d1b
2 changed files with 2 additions and 3 deletions

View file

@ -8,5 +8,4 @@ file(GLOB_RECURSE sources CONFIGURE_DEPENDS "*.cpp")
add_executable(pacman_tests ${sources})
target_link_libraries(pacman_tests GTest::GTest libpacman)
gtest_discover_tests(pacman_tests TEST_PREFIX pacman:)
add_test(NAME monolithic COMMAND pacman_tests)
gtest_discover_tests(pacman_tests)

View file

@ -1,6 +1,6 @@
#include "Position.hpp"
#include <gtest/gtest.h>
TEST(PacManTest, Position) {
TEST(PositionTest, Init) {
EXPECT_EQ(1, 1);
}