forked from qt-creator/qt-creator
AutoTest: Widen scope for run under cursor
..and debug under cursor for QtTest and GTest. Depending on the information coming from the code model we may be able to get a correct scope even when standing inside the function that is defining the test. This makes more sense than the original behavior which made it a hard requirement to stand on a literal to run or debug a test under cursor. But as the codemodel does not provide usable information for all frameworks keep the original behavior as fallback. Task-number: QTCREATORBUG-28752 Change-Id: I13ea7b0ad1e8207da6cb884d212667c4c657957c Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -63,6 +63,11 @@ ITestParser *ITestFramework::testParser()
|
||||
return m_testParser;
|
||||
}
|
||||
|
||||
QStringList ITestFramework::testNameForSymbolName(const QString &) const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
ITestTool::ITestTool(bool activeByDefault)
|
||||
: ITestBase(activeByDefault, ITestBase::Tool)
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user