Is there a way to use Qt's unit testing modules as part of a Code::Blocks project with the QtWorkbench plugin?

StackOverflow https://stackoverflow.com/questions/2493257

Question

We're developing a Qt project using the Code::Blocks IDE with the QtWorkbench plugin. We'd like to take advantage of Qt's unit testing modules to test our code, but from what I've read online, the only way to do so is to use qmake to manually create a new "project" and makefile for each unit test and then to build and execute that project.

Does anyone know of a way to integrate tests with our overall project to have them built and run automatically when the project is built, specifically within the context of Code::Blocks?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top