forked from qt-creator/qt-creator
AutoTest: Fix some ui text punctuation
Change-Id: I9d028d6649d5093f599629e99cef0fdcbeb66db9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
@@ -147,7 +147,7 @@ void BoostTestOutputReader::handleMessageMatch(const QRegularExpressionMatch &ma
|
||||
if (m_currentTest != match.captured(11) && m_currentTest.isEmpty())
|
||||
m_currentTest = match.captured(11);
|
||||
m_result = ResultType::TestEnd;
|
||||
m_description = Tr::tr("Test execution took %1").arg(match.captured(12));
|
||||
m_description = Tr::tr("Test execution took %1.").arg(match.captured(12));
|
||||
} else if (type == "suite") {
|
||||
if (!m_currentSuite.isEmpty()) {
|
||||
int index = m_currentSuite.lastIndexOf('/');
|
||||
@@ -163,7 +163,7 @@ void BoostTestOutputReader::handleMessageMatch(const QRegularExpressionMatch &ma
|
||||
}
|
||||
m_currentTest.clear();
|
||||
m_result = ResultType::TestEnd;
|
||||
m_description = Tr::tr("Test suite execution took %1").arg(match.captured(12));
|
||||
m_description = Tr::tr("Test suite execution took %1.").arg(match.captured(12));
|
||||
}
|
||||
} else if (content.startsWith("Test case ")) {
|
||||
m_currentTest = match.captured(4);
|
||||
@@ -247,7 +247,7 @@ void BoostTestOutputReader::processOutputLine(const QByteArray &outputLine)
|
||||
} else {
|
||||
QTC_CHECK(m_currentModule == match.captured(3));
|
||||
BoostTestResult result(id(), m_currentModule, m_projectFile);
|
||||
result.setDescription(Tr::tr("Test module execution took %1").arg(match.captured(4)));
|
||||
result.setDescription(Tr::tr("Test module execution took %1.").arg(match.captured(4)));
|
||||
result.setResult(ResultType::TestEnd);
|
||||
reportResult(result);
|
||||
|
||||
@@ -394,17 +394,17 @@ void BoostTestOutputReader::onDone(int exitCode)
|
||||
if (m_logLevel == LogLevel::Nothing && m_reportLevel == ReportLevel::No) {
|
||||
switch (exitCode) {
|
||||
case 0:
|
||||
reportNoOutputFinish(Tr::tr("Running tests exited with %1").arg("boost::exit_success."),
|
||||
reportNoOutputFinish(Tr::tr("Running tests exited with %1.").arg("boost::exit_success"),
|
||||
ResultType::Pass);
|
||||
break;
|
||||
case 200:
|
||||
reportNoOutputFinish(
|
||||
Tr::tr("Running tests exited with %1").arg("boost::exit_test_exception."),
|
||||
Tr::tr("Running tests exited with %1.").arg("boost::exit_test_exception"),
|
||||
ResultType::MessageFatal);
|
||||
break;
|
||||
case 201:
|
||||
reportNoOutputFinish(Tr::tr("Running tests exited with %1")
|
||||
.arg("boost::exit_test_failure."), ResultType::Fail);
|
||||
reportNoOutputFinish(Tr::tr("Running tests exited with %1.")
|
||||
.arg("boost::exit_test_failure"), ResultType::Fail);
|
||||
break;
|
||||
}
|
||||
} else if (exitCode != 0 && exitCode != 201 && !m_description.isEmpty()) {
|
||||
|
@@ -90,7 +90,7 @@ void CTestOutputReader::processOutputLine(const QByteArray &outputLine)
|
||||
m_project = match.captured(1);
|
||||
TestResult testResult = createDefaultResult();
|
||||
testResult.setResult(ResultType::TestStart);
|
||||
testResult.setDescription(Tr::tr("Running tests for %1").arg(m_project));
|
||||
testResult.setDescription(Tr::tr("Running tests for \"%1\".").arg(m_project));
|
||||
reportResult(testResult);
|
||||
} else if (ExactMatch match = testCase1.match(line)) {
|
||||
int current = match.captured("current").toInt();
|
||||
|
@@ -81,7 +81,7 @@ void GTestOutputReader::processOutputLine(const QByteArray &outputLine)
|
||||
if (ExactMatch match = testEnds.match(line)) {
|
||||
TestResult testResult = createDefaultResult();
|
||||
testResult.setResult(ResultType::TestEnd);
|
||||
testResult.setDescription(Tr::tr("Test execution took %1").arg(match.captured(2)));
|
||||
testResult.setDescription(Tr::tr("Test execution took %1.").arg(match.captured(2)));
|
||||
reportResult(testResult);
|
||||
m_currentTestSuite.clear();
|
||||
m_currentTestCase.clear();
|
||||
|
Reference in New Issue
Block a user