Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Support test frameworks - in particular GoogleTest

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
grandchain Posted - Sep 26 2023 : 06:30:31 AM
Hi,

I have just started doing a lot of work in a project which uses GoogleTest for unit testing. It doesn't play nicely with Visual Assist...

Tests are declared with either TEST(Suite, TestName) or TEST_F(TestFixture, TestName), and in the VA Outline pane, they all appear as T which is not helpful...

Also, they have matcher functions and mock methods, which don't play nicely with Document Method:

For example, here's the header generated for a matcher function just now:

////////////////////////////////////////////////////////////////////////////////
///
//  Function: TransMatches
///
/// @brief  
///
/// @param  
/// @param  
/// @param  
/// @param  
/// @param  
/// (no parameters)
///
/// @retval 
///
////////////////////////////////////////////////////////////////////////////////
MATCHER_P3(TransMatches, command, address, len, "")
{
   // Implementation redacted
}


Here TransMatches is the matcher method name, command, address and len are the parameters, and the empty string is some sort of name. It would be good if Visual Assist could understand this. There are assorted MATCHER_Pn macros.

I would expect:

////////////////////////////////////////////////////////////////////////////////
///
//  Function: TransMatches
///
/// @brief  
///
/// @param  command
/// @param  address
/// @param  len
/// (no parameters)
///
/// @retval 
///
////////////////////////////////////////////////////////////////////////////////
MATCHER_P3(TransMatches, command, address, len, "")
...

GoogleTest is at https://google.github.io/googletest/

There may be other test frameworks worth supporting as well.

Thanks,

Ian
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 02 2023 : 09:22:41 AM
Unfortunately our bug tracker isn't publicly visible, but we aim to update all forum threads when a case is fixed, so you can subscribe to the forum thread for updates.

Also we list the fixed cases in our release notes, while trying to explain in a few words what has been fixed. Also you can always ask for an update on any open bug reports, and I will check to see what is happening for you.
grandchain Posted - Sep 29 2023 : 11:19:12 AM
Hi @feline,

Thank you for the quick response.

Yes, I see the correct names in the Alt-M list. I look forward to them being fixed in the VA Outline, since I use that a lot for navigation within the file, and for an overview of what's in the file.

How can I track that case?

Thanks,

Ian
feline Posted - Sep 26 2023 : 10:25:18 AM
Unfortunately this is currently a known limitation with VA Outline:

case=144537

We are still working to improve our handling of complex macros. The correct function names should be shown in the Alt-M list, are they being shown for you?

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