One more thing to ask.

I have two classes for testing, and how to run all tests from both classes the same time if I can't add

Qt Code:
  1. QTEST_MAIN(Test1)
To copy to clipboard, switch view to plain text mode 

and

Qt Code:
  1. QTEST_MAIN(Test2)
To copy to clipboard, switch view to plain text mode 

the same time ?

If I will enable it in both classes a compiler complains about the main method

Qt Code:
  1. test1.cpp:57: error: multiple definition of `main'
  2. test2.cpp:24: error: first defined here
  3. :-1: error: collect2: ld returned 1 exit status
To copy to clipboard, switch view to plain text mode 

Thanks