What unit testing framework should I choose for cross platform C++ development.
ID: 659073 • Letter: W
Question
What unit testing framework should I choose for cross platform C++ development.
Preferably (in order of requirements):
facilitate the repeated testing of user interface elements in Qt (or other GUI frameworks).
be as simple as possible to create new tests.
be easy to automate the testing during all phases of the development cycle (from internals to GUI).
output it's results in a place which is nicely formatted or is easy to format.
support the test driven development paradigm.
This question came up a lot in Stack Overflow questions, but that is the wrong forum for this question, and many of the answers don't actually give any details about the individual frameworks.
Explanation / Answer
It sounds like you are mostly concerned with testing the GUI elements, (there are many test frameworks for testing the execution but not so many for the GUI).
One cross platform solution for testing the GUI elements is sikuli - it is a python test framework but since it relies on image recognition for the test actions and some results it should also work nicely for testing of C++ based GUIs, you would just have to compile your test framework or application before starting the tests.
Free
Cross Platform
Uses image recognition to locate items to click on, input fields, etc.
Can use image recognition to confirm actions
Does not require access to GUI internals such as field identifiers or element IDs.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.