Skip to content

Commit d8aa9d4

Browse files
committed
Rename tests to not block some stupid inside cppunit
1 parent 21d1965 commit d8aa9d4

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

tests/simple/FileLogger.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ constexpr auto logMessage = "This is a log message";
8181
#endif
8282
namespace vx {
8383

84-
class FileLogger : public CppUnit::TestCase {
84+
class FileLoggerTest : public CppUnit::TestCase {
8585

86-
CPPUNIT_TEST_SUITE_REGISTRATION( FileLogger );
87-
CPPUNIT_TEST_SUITE( FileLogger );
86+
CPPUNIT_TEST_SUITE_REGISTRATION( FileLoggerTest );
87+
CPPUNIT_TEST_SUITE( FileLoggerTest );
8888
CPPUNIT_TEST( fileLogger );
8989
CPPUNIT_TEST_SUITE_END();
9090

9191
public:
92-
explicit FileLogger( const std::string &_name = {} ) noexcept : CppUnit::TestCase( _name ) {}
92+
explicit FileLoggerTest( const std::string &_name = {} ) noexcept : CppUnit::TestCase( _name ) {}
9393

9494
void setUp() noexcept final { /* Setup things here. */ }
9595

@@ -140,7 +140,7 @@ namespace vx {
140140
int main() {
141141

142142
CppUnit::TextUi::TestRunner runner;
143-
runner.addTest( vx::FileLogger::suite() );
143+
runner.addTest( vx::FileLoggerTest::suite() );
144144
bool wasSuccessful = runner.run();
145145
return wasSuccessful ? 0 : 1;
146146
}

tests/simple/NullLogger.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ constexpr auto logMessage = "This is a log message";
6767
#endif
6868
namespace vx {
6969

70-
class NullLogger : public CppUnit::TestCase {
70+
class NullLoggerTest : public CppUnit::TestCase {
7171

72-
CPPUNIT_TEST_SUITE_REGISTRATION( NullLogger );
73-
CPPUNIT_TEST_SUITE( NullLogger );
72+
CPPUNIT_TEST_SUITE_REGISTRATION( NullLoggerTest );
73+
CPPUNIT_TEST_SUITE( NullLoggerTest );
7474
CPPUNIT_TEST( nullLogger );
7575
CPPUNIT_TEST_SUITE_END();
7676

7777
public:
78-
explicit NullLogger( const std::string &_name = {} ) noexcept : CppUnit::TestCase( _name ) {}
78+
explicit NullLoggerTest( const std::string &_name = {} ) noexcept : CppUnit::TestCase( _name ) {}
7979

8080
void setUp() noexcept final { /* Setup things here. */ }
8181

@@ -111,7 +111,7 @@ namespace vx {
111111
int main() {
112112

113113
CppUnit::TextUi::TestRunner runner;
114-
runner.addTest( vx::NullLogger::suite() );
114+
runner.addTest( vx::NullLoggerTest::suite() );
115115
bool wasSuccessful = runner.run();
116116
return wasSuccessful ? 0 : 1;
117117
}

tests/simple/StdLogger.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ constexpr auto logMessage = "This is a log message";
6767
#endif
6868
namespace vx {
6969

70-
class StdLogger : public CppUnit::TestCase {
70+
class StdLoggerTest : public CppUnit::TestCase {
7171

72-
CPPUNIT_TEST_SUITE_REGISTRATION( StdLogger );
73-
CPPUNIT_TEST_SUITE( StdLogger );
72+
CPPUNIT_TEST_SUITE_REGISTRATION( StdLoggerTest );
73+
CPPUNIT_TEST_SUITE( StdLoggerTest );
7474
CPPUNIT_TEST( stdLogger );
7575
CPPUNIT_TEST_SUITE_END();
7676

7777
public:
78-
explicit StdLogger( const std::string &_name = {} ) noexcept : CppUnit::TestCase( _name ) {}
78+
explicit StdLoggerTest( const std::string &_name = {} ) noexcept : CppUnit::TestCase( _name ) {}
7979

8080
void setUp() noexcept final { /* Setup things here. */ }
8181

@@ -111,7 +111,7 @@ namespace vx {
111111
int main() {
112112

113113
CppUnit::TextUi::TestRunner runner;
114-
runner.addTest( vx::StdLogger::suite() );
114+
runner.addTest( vx::StdLoggerTest::suite() );
115115
bool wasSuccessful = runner.run();
116116
return wasSuccessful ? 0 : 1;
117117
}

tests/simple/XmlLogger.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ constexpr auto logMessage = "This is a log message";
8181
#endif
8282
namespace vx {
8383

84-
class XmlLogger : public CppUnit::TestCase {
84+
class XmlLoggerTest : public CppUnit::TestCase {
8585

86-
CPPUNIT_TEST_SUITE_REGISTRATION( XmlLogger );
87-
CPPUNIT_TEST_SUITE( XmlLogger );
86+
CPPUNIT_TEST_SUITE_REGISTRATION( XmlLoggerTest );
87+
CPPUNIT_TEST_SUITE( XmlLoggerTest );
8888
CPPUNIT_TEST( xmlLogger );
8989
CPPUNIT_TEST_SUITE_END();
9090

9191
public:
92-
explicit XmlLogger( const std::string &_name = {} ) noexcept : CppUnit::TestCase( _name ) {}
92+
explicit XmlLoggerTest( const std::string &_name = {} ) noexcept : CppUnit::TestCase( _name ) {}
9393

9494
void setUp() noexcept final { /* Setup things here. */ }
9595

@@ -140,7 +140,7 @@ namespace vx {
140140
int main() {
141141

142142
CppUnit::TextUi::TestRunner runner;
143-
runner.addTest( vx::XmlLogger::suite() );
143+
runner.addTest( vx::XmlLoggerTest::suite() );
144144
bool wasSuccessful = runner.run();
145145
return wasSuccessful ? 0 : 1;
146146
}

0 commit comments

Comments
 (0)