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())
|
if (m_currentTest != match.captured(11) && m_currentTest.isEmpty())
|
||||||
m_currentTest = match.captured(11);
|
m_currentTest = match.captured(11);
|
||||||
m_result = ResultType::TestEnd;
|
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") {
|
} else if (type == "suite") {
|
||||||
if (!m_currentSuite.isEmpty()) {
|
if (!m_currentSuite.isEmpty()) {
|
||||||
int index = m_currentSuite.lastIndexOf('/');
|
int index = m_currentSuite.lastIndexOf('/');
|
||||||
@@ -163,7 +163,7 @@ void BoostTestOutputReader::handleMessageMatch(const QRegularExpressionMatch &ma
|
|||||||
}
|
}
|
||||||
m_currentTest.clear();
|
m_currentTest.clear();
|
||||||
m_result = ResultType::TestEnd;
|
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 ")) {
|
} else if (content.startsWith("Test case ")) {
|
||||||
m_currentTest = match.captured(4);
|
m_currentTest = match.captured(4);
|
||||||
@@ -247,7 +247,7 @@ void BoostTestOutputReader::processOutputLine(const QByteArray &outputLine)
|
|||||||
} else {
|
} else {
|
||||||
QTC_CHECK(m_currentModule == match.captured(3));
|
QTC_CHECK(m_currentModule == match.captured(3));
|
||||||
BoostTestResult result(id(), m_currentModule, m_projectFile);
|
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);
|
result.setResult(ResultType::TestEnd);
|
||||||
reportResult(result);
|
reportResult(result);
|
||||||
|
|
||||||
@@ -394,17 +394,17 @@ void BoostTestOutputReader::onDone(int exitCode)
|
|||||||
if (m_logLevel == LogLevel::Nothing && m_reportLevel == ReportLevel::No) {
|
if (m_logLevel == LogLevel::Nothing && m_reportLevel == ReportLevel::No) {
|
||||||
switch (exitCode) {
|
switch (exitCode) {
|
||||||
case 0:
|
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);
|
ResultType::Pass);
|
||||||
break;
|
break;
|
||||||
case 200:
|
case 200:
|
||||||
reportNoOutputFinish(
|
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);
|
ResultType::MessageFatal);
|
||||||
break;
|
break;
|
||||||
case 201:
|
case 201:
|
||||||
reportNoOutputFinish(Tr::tr("Running tests exited with %1")
|
reportNoOutputFinish(Tr::tr("Running tests exited with %1.")
|
||||||
.arg("boost::exit_test_failure."), ResultType::Fail);
|
.arg("boost::exit_test_failure"), ResultType::Fail);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (exitCode != 0 && exitCode != 201 && !m_description.isEmpty()) {
|
} else if (exitCode != 0 && exitCode != 201 && !m_description.isEmpty()) {
|
||||||
|
@@ -90,7 +90,7 @@ void CTestOutputReader::processOutputLine(const QByteArray &outputLine)
|
|||||||
m_project = match.captured(1);
|
m_project = match.captured(1);
|
||||||
TestResult testResult = createDefaultResult();
|
TestResult testResult = createDefaultResult();
|
||||||
testResult.setResult(ResultType::TestStart);
|
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);
|
reportResult(testResult);
|
||||||
} else if (ExactMatch match = testCase1.match(line)) {
|
} else if (ExactMatch match = testCase1.match(line)) {
|
||||||
int current = match.captured("current").toInt();
|
int current = match.captured("current").toInt();
|
||||||
|
@@ -81,7 +81,7 @@ void GTestOutputReader::processOutputLine(const QByteArray &outputLine)
|
|||||||
if (ExactMatch match = testEnds.match(line)) {
|
if (ExactMatch match = testEnds.match(line)) {
|
||||||
TestResult testResult = createDefaultResult();
|
TestResult testResult = createDefaultResult();
|
||||||
testResult.setResult(ResultType::TestEnd);
|
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);
|
reportResult(testResult);
|
||||||
m_currentTestSuite.clear();
|
m_currentTestSuite.clear();
|
||||||
m_currentTestCase.clear();
|
m_currentTestCase.clear();
|
||||||
|
Reference in New Issue
Block a user