rili::test::TestBaseFixture Class Referenceabstract

Public Member Functions

virtual void before ()
 
virtual void run ()=0
 
virtual void after ()
 
virtual std::string const & fixtureName () const noexcept=0
 
virtual std::string const & scenarioName () const noexcept=0
 

Member Function Documentation

virtual void rili::test::TestBaseFixture::after ( )
virtual

will be run after test

Note
you can use it to check test post conditions
you can use it to release resources aquired in before() or run() and preform teardowns
virtual void rili::test::TestBaseFixture::before ( )
virtual

will be run as preconditional for test

Note
you can override it in your fixture if you have special preconditions for your test
virtual std::string const& rili::test::TestBaseFixture::fixtureName ( ) const
pure virtualnoexcept

used to get test fixture name

example:

TEST(XYZ, ABC)
{
std::cout << fixtureName() << std::endl;
}
// will print "XYZ"
Returns
fixture name as string
virtual void rili::test::TestBaseFixture::run ( )
pure virtual

should contain test body - will be provided by TEST_F or TEST

virtual std::string const& rili::test::TestBaseFixture::scenarioName ( ) const
pure virtualnoexcept

used to get test scenario name

example:

TEST(XYZ, ABC)
{
std::cout << scenarioName() << std::endl;
}
// will print "ABC"
Returns
scenario name as string

The documentation for this class was generated from the following file: