Quote Originally Posted by hubbobubbo View Post
How do I set up the testing with many testcases, I can only have 1 main function?
I'm also concerned about this problem. There seem to be no way to organize tests in hierarchy. Take xUnit testing framework family's approach as an example: there are test cases which can be organized in test suites, which in turn can be included into other test suites. All this stuff makes it possible to organize tests in a nice tree which mimics the project's structure and simplifies both navigation between code and corresponding tests. Also this tree has one entry point thus eliminating the need to find the right one.

On the other hand there's QtTest framework. Personally I took tests for Qt Creator as a reference. Immediately two questions arose:
  1. How can I run all its tests in one go?
  2. How can I find a test that covers a particular piece of code?

Quote Originally Posted by wysota View Post
Each test function can cover many test cases through data-driven testing.
That's a nice feature indeed, but it has quite a different goal. If I got it right it is similar to jUnit's and PhpUnit's data providers. They just feed the test with different sets of data to see how the same piece of code can handle it. So it cannot be used to test different parts of system, while hubbobubbo and I look for a way to organize tests for different pieces of code.

Sorry for such an offensive manner, I'm really eager to utilize QtTest, but it's so irritating to miss features you've got used to while others tend to say "you don't need them". Maybe there's another way to achieve the same goals with QtTest but neither hubbobubbo nor me just couldn't manage to find them? Please share your experience so that we also can be happy