Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Problems with BOOST_TEST

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
WizardOz Posted - Jul 16 2010 : 09:28:00 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
WizardOz Posted - Jul 16 2010 : 5:22:13 PM
Thanks, that worked!
feline Posted - Jul 16 2010 : 12:34:31 PM
Can you try telling VA to parse macro's that call macro's, as described here:

http://docs.wholetomato.com?W363

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000