Quote Originally Posted by doberkofler View Post
- I'm very much convinced (and 20 years of C++ experience never proved me wrong) that assertions are even more important in production code then in debug version
If an assert triggers during tests it means it will fire in the production code. All asserts should be removed prior to testing (which is easy - just build your app in release mode). If you still want to test the conditions, substitute asserts with regular checks and exit the function gracefully.

If you insist on asserts not killing your application, redefine the assert/Q_ASSERT macro to do something else than abort the process.