X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/232fdc630c42eb165f7659981043e794be03b3b7..7a36d9c7c1a077ba7e05c248bcf19c4c9bb1356f:/docs/tech/tn0017.txt?ds=sidebyside diff --git a/docs/tech/tn0017.txt b/docs/tech/tn0017.txt index fcda227346..eeff4c2fee 100644 --- a/docs/tech/tn0017.txt +++ b/docs/tech/tn0017.txt @@ -1,7 +1,7 @@ How to write unit tests for wxWidgets ===================================== - Unit tests for wxWidgets are written using small cppunit framework. To compile +Unit tests for wxWidgets are written using small cppunit framework. To compile (but not to run) them you need to have it installed. Hence the first part of this note explains how to do it while the second one explains how to write the test. @@ -17,7 +17,7 @@ I. CppUnit Installation - build everything in CppUnitLibraries.dsw work space - add include and lib subdirectories of the directory where you installed cppunit to the compiler search path - using "Tools|Options" menu in VC IDEA + using "Tools|Options" menu in VC IDE b) Under Unix: run configure && make && make install as usual @@ -38,7 +38,7 @@ II. Writing tests with CppUnit // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION(MBConvTestCase); - // also include in it's own registry so that these tests can be run alone + // also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(MBConvTestCase, "MBConvTestCase"); Read CppUnit documentation for more. @@ -62,7 +62,9 @@ II. Writing tests with CppUnit event type. It disconnects again once it is out of scope. It simply reduces the amount of typing required to count events. -3. add a '' tag for your source file to tests/test.bkl +3. add a '' tag for your source file to tests/test.bkl. Make sure it's + in the correct section: the one starting '