Hi,
see [1] for a compact example of a working test. You usually don't write
constructors manually in test suites, just your test methods, setUp(), and
tearDown(). Take attention to the CPPUNIT_TEST_SUITE, MITK_TEST, and
CPPUNIT_TEST_SUITE_END macros. Probably you forgot MITK_TEST_SUITE_REGISTRATION
(see last line in [1]).
[1]
https://github.com/MITK/MITK/blob/master/Modules/Core/test/mitkNodePredicateFunctionTest.cpp?
Best,
Stefan
________________________________
Von: Alex Valcourt Caron <[email protected]>
Gesendet: Mittwoch, 28. März 2018 20:59
An: [email protected]
Betreff: [mitk-users] Problem build Test Suite
Hello,
I am presently writing tests for a module and I have written the suite as
defined in the documentation.
However, when comes the time to build the driver, I have an undefined reference
error on the parametric constructor of the suite taking an int and a char** as
parameters.
Example :
CMakeFiles/VoxsimLibTestDriver.dir/VoxsimLibTestDriver_main.cpp.o:(.rodata+0x18):
undefined reference to `VoxsimDrawObjectFactoryReadTestSuite(int, char**)'
I tried defining the constructor in the public scope of my class, to no avail.
Can somebody help me ?
Thanks,
Alex
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users