[Test] Is It Possible to Put Test Cases in DLL?

Dear all, I remember seeing similar topic some time earlier, but I failed to find the information I need. So if this question has been answer before, please kindly point me to the correct resource. TIA! Basically, I goal is to build a bunch of unit test cases into a few DLLs, and be able to run them by loading the DLLs into my test executable (either automatic or using LoadLibrary is fine with me). I'm using the auto registration facility now to create and register the test suites and cases. And I'm running on MSVC 7.1 on Windows XP SP2 now. Any pointer will be greatly appreciated. Cheers, Freddie -- Wu Yinghui, Freddie Research & Development Software Engineer Volume Interactions Pte Ltd 1 Kim Seng Promenade, #12-01 Great World City East Tower Singapore 237994 Tel: +65 62226962 (Ext 216) Fax: +65 62226215 Email: yhwu@volumeinteractions.com URL: http://www.volumeinteractions.com Important: This message is intended for the recipient(s) addressed above. It contains privileged and confidential information. If you are not the intended recipient, please notify the sender immediately by replying to this message and then delete it from your system. You must not read, copy, use, or disseminate this communication in any form. Thank you.

"Wu Yinghui, Freddie"
wrote in message news:4476BDAD.5060100@volumeinteractions.com... Dear all,
Hi, Freddy
I remember seeing similar topic some time earlier, but I failed to find the information I need. So if this question has been answer before, please kindly point me to the correct resource. TIA!
Basically, I goal is to build a bunch of unit test cases into a few DLLs, and be able to run them by loading the DLLs into my test executable (either automatic or using LoadLibrary is fine with me).
This option is available with CVS version of Boost.Test. Here is what you need to do: 1. Build DLL version of UnitTestFramework. 2. Build DLL with your test cases. 3. Buils console_test_runner utility from libs/test/tools Now it's all you need. If you have any questions regarding any of the steps above please ask.
I'm using the auto registration facility now to create and register the test suites and cases. And I'm running on MSVC 7.1 on Windows XP SP2 now.
I have test_runner_test to specifically test this situation. Gennadiy

I think you might have problems with building boost unit test cases into a
DLL with the current release version. I tried to do exactly this and ended
up writing a small test frame work myself to load and unload test cases from
DLL's . It didn't take much to build one yourself and possibly you can use
all the boost convenience in your test DLL also.
Thanks,
Edwin
On 5/26/06, Wu Yinghui, Freddie
Dear all,
I remember seeing similar topic some time earlier, but I failed to find the information I need. So if this question has been answer before, please kindly point me to the correct resource. TIA!
Basically, I goal is to build a bunch of unit test cases into a few DLLs, and be able to run them by loading the DLLs into my test executable (either automatic or using LoadLibrary is fine with me).
I'm using the auto registration facility now to create and register the test suites and cases. And I'm running on MSVC 7.1 on Windows XP SP2 now.
Any pointer will be greatly appreciated.
Cheers,
Freddie
-- Wu Yinghui, Freddie Research & Development Software Engineer
Volume Interactions Pte Ltd 1 Kim Seng Promenade, #12-01 Great World City East Tower Singapore 237994 Tel: +65 62226962 (Ext 216) Fax: +65 62226215 Email: yhwu@volumeinteractions.com URL: http://www.volumeinteractions.com
Important: This message is intended for the recipient(s) addressed above. It contains privileged and confidential information. If you are not the intended recipient, please notify the sender immediately by replying to this message and then delete it from your system. You must not read, copy, use, or disseminate this communication in any form. Thank you.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Edwin Savarimuthu
-
Gennadiy Rozental
-
Wu Yinghui, Freddie