- This talk is partly demo-based
- The demo code is at:
- github.com/claremacrae/approvals_live_demo
- As I give this talk, I tag the versions presented, as the demos and ApprovalTests.cpp library will evolve over time:
- Tag: 2020-09-cppcon: CppCon 2020, 16 September 2020
- Approval Tests
- Arne Mertz's "Hello CMake" series
- Catch2 test framework
- clazy - Qt related compiler warnings and fixits
- old-style-connect - but do read the caveats.
- Clare Macrae's "Quickly Testing Legacy Code" talk at C++ on Sea 2019
- Googletest - Google Testing and Mocking Framework
- KDAB GammaRay
- Llewellyn Falco and Woody Zuill's "Practical Refactoring: 2 Minutes to Better Code"
- Qt
- Qt Test framework
- Qt's "Writing Unit Tests" - now in transit to new location: Qt Test Best Practices
- Qt's "Writing good tests"
- ICS's slides on "QtTest Unit Testing Framework" - with a link to the video of the talk
- QApplication command-line arguments
- Supported platform names - for example, run your tests with
-platform offscreen
to avoid Widgets flashing up
- Supported platform names - for example, run your tests with
- Squish GUI Test Automation Tool
- SuperCollider audio platform
- Test Pyramid
- Travis CI's "GUI and Headless Browser Testing"
- Xvfb - virtual framebuffer X server for X11
I am a consultant and trainer.
- Example: QGIS Unit Testing and QGIS's test code
- Generally useful pages
- Increase your QTest productivity - another auto-registering mechanism, how to create fixtures, and colour-coding test output
- Qt Tests only supports one test QObject per executable, generating large numbers of exes
- Various people have tried to work around this - the following links may be useful