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
 Feature Requests
 Support test frameworks - in particular GoogleTest
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

grandchain
Junior Member

United Kingdom
22 Posts

Posted - Sep 26 2023 :  06:30:31 AM  Show Profile  Reply with Quote
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

Edited by - grandchain on Sep 26 2023 06:32:43 AM

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Sep 26 2023 :  10:25:18 AM  Show Profile  Reply with Quote
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?

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

grandchain
Junior Member

United Kingdom
22 Posts

Posted - Sep 29 2023 :  11:19:12 AM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Oct 02 2023 :  09:22:41 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
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