Improve unit testing directory structure

Separate Qt tests and gtest tests
Add a basic shadow of the project structure
Add a few simple tests to demonstrate usage
This commit is contained in:
berniev
2023-01-03 14:12:19 +10:00
committed by Chris Hennes
parent 4eca103469
commit 9a05a04dad
14 changed files with 96 additions and 78 deletions

19
tests/src/Misc/test1.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include "gtest/gtest.h"
TEST(FirstSuite, FirstTest){
EXPECT_NE(1, 1) << "are in fact equal";
}
TEST(FirstSuite, SecondTest){
EXPECT_EQ(1, 2) << "not equal";
}
TEST(FirstSuite, ThirdTest){
ASSERT_STREQ("A", "A") << "str not equal";
}
TEST(FirstSuite,FifthTest){
ASSERT_STRNE("am", "am") << "str equal";
}
TEST(FirstSuite, FourthTest){
ASSERT_STREQ("am", "A") << "str not equal";
}