WizardOz
New Member
USA
2 Posts |
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. |
|