I have a problem.
I use MfcUi dialog for testing. Everything is all right...
But now I'm testing one method of class, and this method loads data from database by CDaoRecordset, set data by Execute, etc.
DAO technologie doesn't support multithreading... Test finished with unknown exception...
I need run cppunit tests from the same instance/thread like application...
Is it possible? And how? Piece of code...?
Thanks...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-04-29
I have solved this problem. There are no parameters for disable threads. I had to change source code of tesrunner (ActiveTest.cpp). Now I can test methods with CDao... objects.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
I have a problem.
I use MfcUi dialog for testing. Everything is all right...
But now I'm testing one method of class, and this method loads data from database by CDaoRecordset, set data by Execute, etc.
DAO technologie doesn't support multithreading... Test finished with unknown exception...
I need run cppunit tests from the same instance/thread like application...
Is it possible? And how? Piece of code...?
Thanks...
I have solved this problem. There are no parameters for disable threads. I had to change source code of tesrunner (ActiveTest.cpp). Now I can test methods with CDao... objects.