I am trying to use QtTestRunner as a modeless dialog so that I may run user-level tests, simulating user input and unsing CppUnit as a testing toolkit. The problem I am currently having is that the test objects seem to be allocated in a manner that does not give them scope beyond the execution of QtTestRunner's run() method.
Has anyone run QtTestRunner as a modeless dialog and if so, could you advise me as to the underlying changes I would need to make in order to do this effectively?
Thanks in advance for help,
Ryan Smart
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Look into the QtTestRunner class. I believe it is the one which delete the test uppon destruction. You might be able to get away bypassing this class and using the TestRunnerDlg class directly.
Baptiste.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to use QtTestRunner as a modeless dialog so that I may run user-level tests, simulating user input and unsing CppUnit as a testing toolkit. The problem I am currently having is that the test objects seem to be allocated in a manner that does not give them scope beyond the execution of QtTestRunner's run() method.
Has anyone run QtTestRunner as a modeless dialog and if so, could you advise me as to the underlying changes I would need to make in order to do this effectively?
Thanks in advance for help,
Ryan Smart
Look into the QtTestRunner class. I believe it is the one which delete the test uppon destruction. You might be able to get away bypassing this class and using the TestRunnerDlg class directly.
Baptiste.