#include <BaseTest.h>
Base class for Sofa test fixtures. More...
Base class for Sofa test fixtures.
Public Attributes | |
sofa::testing::MessageAsTestFailure | m_fatal |
sofa::testing::MessageAsTestFailure | m_error |
Static Public Attributes | |
static int | seed = (unsigned int)time(nullptr) |
Seed value. More... | |
Public Member Functions | |
BaseTest () | |
Initialize Sofa and the random number generator. More... | |
~BaseTest () override | |
virtual void | onSetUp () |
virtual void | onTearDown () |
sofa::testing::MessageAsTestFailure sofa::testing::BaseTest::m_error |
sofa::testing::MessageAsTestFailure sofa::testing::BaseTest::m_fatal |
To prevent that you simply need to add the line EXPECT_MSG_EMIT(Error); Where you want to allow a message.
|
static |
Seed value.
sofa::testing::BaseTest::BaseTest | ( | ) |
Initialize Sofa and the random number generator.
|
override |
|
inlinevirtual |
Reimplemented in sofa::linearalgebra::testing::TestBaseMatrix< T >, and sofa::AdvancedTimerTest.
|
inlinevirtual |
Reimplemented in sofa::linearalgebra::testing::TestBaseMatrix< T >.