Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Problems with BOOST_TEST
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

WizardOz
New Member

USA
2 Posts

Posted - Jul 16 2010 :  09:28:00 AM  Show Profile  Reply with Quote
Hello,

I keep having trouble with Visual Assist X when I write unit tests with the BOOST_TEST framework (currently using VS 2008).

Basically, I have a simple C++ class (.h + .cpp file, nothing crazy) and VA works just fine.

I then create a separate project that tests this class. The unit test .cpp file usually looks something like this:

#define BOOST_TEST_MODULE TEST_SUITE_LIB_NETWORKLIMIT
#include <boost/test/unit_test.hpp>

struct Fixture ....
...

BOOST_FIXTURE_TEST_SUITE(suite, Fixture)

[Tests here]

BOOST_AUTO_TEST_SUITE_END()

Basically, VA will pretty much not work reliably at all while I'm working in the test cpp file. While it's a bit sporadic, one thing will *never* work:

BOOST_AUTO_TEST_CASE(test4)
{
int test = 0;

if (test == 0)
....
}

If I then start typing to use that "test" variable, VA will not even recognize it. If I use it again, it will actually underline it read in the next line, as if it was not defined.

It seems as if the Boost framework / macros break something.

Any suggestions? We're running the latest public version of VA, downloaded a week ago or so.


Thanks.

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jul 16 2010 :  12:34:31 PM  Show Profile  Reply with Quote
Can you try telling VA to parse macro's that call macro's, as described here:

http://docs.wholetomato.com?W363

zen is the art of being at one with the two'ness
Go to Top of Page

WizardOz
New Member

USA
2 Posts

Posted - Jul 16 2010 :  5:22:13 PM  Show Profile  Reply with Quote
Thanks, that worked!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000