Re: [Boost-users] [Test] Is It Possible to Put Test Cases in DLL?
Hi Edwin, Thanks for your pointer. But how this small test framework is supposed to work out? The fact is that I've been using Boost.Test mostly with its auto test case capability (I don't want to have to write code to register my test cases one by one in general, unless that's the last resort). Therefore, I'm not very familiar with how such mechanism can work out by writing some test framework of my own... Would you mind to shed some more light on this? Thanks, Freddie
From: "Edwin Savarimuthu"
Date: Wed, 31 May 2006 16:16:49 -0500 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*
mailto:yhwu@volumeinteractions.com> wrote: 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.
-- 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.
participants (1)
-
Wu Yinghui, Freddie