cppunit Flashcards

1
Q

what is the workflow for setting up a unit test?

A
  • choose which testing main function to add to or create testing main function
  • create new test class in ~/dev close to the function being tested,and let it inherit from TestFixture
  • add headers in .h file of test class to add to test suite
  • add main test function/test function to src/cppunit/CMakeLists.txt
  • add CPPUNIT_TEST_SUITE_REGISTRATION to test.cpp file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly