Indexing started on 2024-05-19 02:30:04 (UTC) still in progress
How to add unit tests to a module
- Copy the qa/unittest.template module to the module dir, and rename it to
'unittest'. Be careful not to copy '.svn'.
- Create a file <classname>test.cpp for every class, and implement the tests
for each method.. See 'myclasstest.cpp' for a template.
- Add every <classname>test.cpp file to 'unittest.pri'
- In 'unittest.pro', replace '$$MYMODULE' with the name of the module that you
are unit testing. Also include all the modules that are required to compile
a standalone checker for the module under test.
- Add an 'include' line to the list of unit tests in qa/unittests.pri. This
is used to compile the full unit test suite of all modules.
- Make sure 'qa/unittests.pro' contains the module under test, and make
sure that it compiles and runs fine.
SEE ALSO: README
Name | Size | Date (UTC) | Last indexed | Description | |
---|---|---|---|---|---|
Name | Size | Date (UTC) | Last indexed | Description | |
Parent directory | - | 2024-02-11 01:47:24 | |||
qttestutil/ | - | 2024-02-11 01:47:24 | |||
unittest.template/ | - | 2024-02-11 01:47:24 | |||
unittests/ | - | 2024-02-11 01:47:24 | |||
checker.cpp | 366 bytes | 2024-02-11 01:47:24 | 2024-05-19 04:06:46 | ||
README | 1208 bytes | 2024-02-11 01:47:24 | - | ||
unittest.pri | 490 bytes | 2024-02-11 01:47:24 | - | ||
unittests.pri | 118 bytes | 2024-02-11 01:47:24 | - |