Warning, /education/labplot/admin/README.unittests is written in an unsupported language. File is not indexed.
0001 http://doc.qt.io/qt-5/qtest-overview.html 0002 http://doc.qt.io/qt-5/qtest-tutorial.html 0003 https://wiki.qt.io/Unit_Testing 0004 https://wiki.qt.io/Writing_Unit_Tests 0005 https://cmake.org/Wiki/CMake/Testing_With_CTest 0006 0007 There are different ways to execute the tests: 0008 * navigate to the build folder and do 'make test' 0009 * navigate to the build folder and execute 'ctest' 0010 * navigate to the folder containing the actual test executable and execute it from there, e.g 'cd build/tests/import_export/ASCII && ./asciifiltertest' 0011 0012 When executing via ctest, different options are available to execute individual tests: 0013 * ctest -R filter - execute only tests having the substring 'filter' in the file name 0014 * ctest -E filter - execute all tests excluding tests having the substring 'filter' in the file name 0015 * ctest -I 1, 3, 5 - execute the first, the third and the fifth tests only, use 'ctest -N' to determine which tests are available 0016 0017 Check https://cmake.org/Wiki/CMake/Testing_With_CTest and ctest --help for more infos. 0018 0019 To selectively execute tests when starting the test binaries directly, simple add the name of the test function you want to execute as a parameter to the executable, e.g. './asciifiltertest testEmptyFileAppend'. 0020 Check http://doc.qt.io/qt-5/qtest-overview.html and -help output of a test executable for more infos.