You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question: How can I get the TestFixtureName and TestName based on cursor location?
Context: In my workflow, I need to write out the TestFixtureName and TestName whenever I want to run a single test point. This is time consuming when repeated multiple times, so I'd like to figure out a faster way.
Example:
For unit test below, put my cursor on line with "bar"
What is an API i can execute to return the string "TestFixtureName" and "TestName" based on my cursors last location within "TEST_F"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question: How can I get the TestFixtureName and TestName based on cursor location?
Context: In my workflow, I need to write out the TestFixtureName and TestName whenever I want to run a single test point. This is time consuming when repeated multiple times, so I'd like to figure out a faster way.
Example:
TEST_F(TestFixtureName, TestName) {
foo;
bar;
baz;
}
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions