The unit tests documentation in the Contributor’s manual offers a good introduction to unit testing and some technical hints for writing them. However, I believe we could add more information and make it more easy to follow for newcomers (at least when I wanted to write and run some tests, I found it rather austere).
What I think can be be added/enhanced:
- how to run the tests (full suite, single tests)
- how to compile tests
- env variables that affect tests
- link to kde guide - good intro to qttest
Notes
- export KRITA_NO_ASSERT_MSG=1 # disable safe assert windows
- https://docs.krita.org/en/untranslatable_pages/cmake_settings_for_developers.html
- https://community.kde.org/Guidelines_and_HOWTOs/UnitTests