Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Boost Testcases do not show in VA View

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
space_cowboy Posted - Mar 13 2009 : 06:50:45 AM
I have several Testcases and Testsuites defined using the BOOST_AUTO_TEST_SUITE and BOOST_AUTO_TEST_CASE macros, but they are not shown in the [Symbols in Solution]-list in the VA View. I enabled enhanced macro parsing in the registry and rebuilt the symbol databases, but this had no effect here.

Here is my system info:

VA_X.dll file version 10.5.1715.0 built 2009.01.25
Licensed to:
VA X: --------------------------
DevEnv.exe version 8.0.50727.762
msenv.dll version 8.0.50727.762
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.5512
Windows XP 5.1 Build 2600 Service Pack 3
2 processors

Platform: Win32
Stable Includes:
C:\\Programme\\Microsoft Visual Studio 8\\VC\\include;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
C:\\Programme\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;
C:\\Programme\\Microsoft DirectX SDK (August 2007)\\Include;
C:\\Programme\\Intel\\IPP\\5.3.4.087\\ia32\\include;
C:\\Programme\\Microsoft SDKs\\Windows\\v6.1\\Include;

Other Includes:

Stable Source Directories:
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfcm;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\crt\\src;

Thanks !
6   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 20 2009 : 11:13:25 AM
*sigh* so much for that theory.

What version of Boost do I need to be using for your sample code to compile?

Once I get this compiling I am going to see if I can make any progress using helper macro's in VA's StdAfx.h file.
space_cowboy Posted - Apr 20 2009 : 08:38:45 AM
Ok, I updated to version 1722 and set the registry values as described. The tests still do not show up in the symbol list. If anything got faster i cannot really tell, since my solutions are not that big that it would make any difference.

wbr

Space_Cowboy
feline Posted - Apr 16 2009 : 5:43:02 PM
If you are using VA 1721 or above then there is something you can try. Firstly make sure you have turned on macro parsing as described in this FAQ entry:

http://docs.wholetomato.com?W363

Then with all instances of the IDE closed set the registry key:

HKCU \\ Software \\ Whole Tomato \\ Visual Assist X \\ LimitMacro = "NoDepthLimit"

instead of the old value of "No".

The macro parsing should be quite a bit faster. Can you please let me know if this makes any difference or not.
feline Posted - Mar 16 2009 : 2:14:35 PM
You may find this forum thread helpful:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=8594

We are working on some changes internally that *may* help with these Boost macros:

case=25115
space_cowboy Posted - Mar 16 2009 : 08:57:32 AM
Testcode would look like this :

#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_SUITE( TestSuite1 )

BOOST_AUTO_TEST_CASE( TestCase1 )
{
	BOOST_CHECK_EQUAL( 1, 2 );
}

BOOST_AUTO_TEST_SUITE_END()


Neither TestSuite1 nor TestCase1 are shown in the list of symbols in the solution. The macro definitions are rather complex and can be taken from the Boost.Test source. As far as I understand it, the BOOST_AUTO_TEST_CASE macro user the BOOST_FIXTURE_TEST_CASE macro, wich defines
struct TestCase1
wich has the testmethod as public member. What I want is, that i can type the name of test case or test suite in the symbols list and the get there.

wbr

Space_Cowboy
accord Posted - Mar 13 2009 : 6:56:20 PM
Can you please post an example macro where Visual Assist cannot extract the required information, so we can try to reproduce your problem here.

You can post one of your macros or a simplified version where the problem still happens.

If you don't want to post the source publicly, then just use our form here:
http://www.wholetomato.com/support/contact.asp
Please indicate this thread ID or URL in the description, so we can match it up.

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