Boost logo

Boost Users :

Subject: Re: [Boost-users] boost test + MFC
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-12-18 20:04:35


Andrew Wan wrote:
> I have a massive MFC app that uses a username/password login system.
>
> I managed to get something in the main app ::InitInstance function. I want
> to start running the test suite/cases AFTER logging into the system.
> TestCases such as create/delete folder, etc.
>
> I understand that TestUnits are suppose to be testing individual units
> (class objects) functionality. This is a bit program in my massive MFC app
> where everything depends on everything else. I guess what am looking for is
> integration testing. My main app is already instantiated and the test runner
> runs within the main app. Is it possible to execute commands (create/delete
> folder) to do integration testing... and add them into the testsuite/runner?

Not sure I follow what you are saying, but it *is* possible to invoke
unit_test_main() from your own main or any other point in your
application. You will need to use dynamic library variant of UTF.

Let me know if you have any problems with this approach.

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net