mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
sm runner: ensure test failure if comparison failure is incomplete, log the problem
This commit is contained in:
+1
@@ -392,6 +392,7 @@ public class GeneralToSMTRunnerEventsConvertor extends GeneralTestEventsProcesso
|
||||
testProxy.setTestFailed(localizedMessage, stackTrace, isTestError);
|
||||
}
|
||||
else {
|
||||
testProxy.setTestFailed(localizedMessage, stackTrace, isTestError);
|
||||
logProblem("Comparison failure actual and expected texts should be both null or not null.\n"
|
||||
+ "Expected:\n"
|
||||
+ comparisionFailureExpectedText + "\n"
|
||||
|
||||
+12
@@ -177,6 +177,18 @@ public class GeneralToSMTRunnerEventsConvertorTest extends BaseSMTRunnerTestCase
|
||||
assertFalse(proxy.isInProgress());
|
||||
}
|
||||
|
||||
public void testOnTestTruncatedComparisonFailure() {
|
||||
onTestStarted("some_test");
|
||||
myEventsProcessor.onTestFailure(new TestFailedEvent("some_test", "", "", false, "actual", null));
|
||||
|
||||
final String fullName = myEventsProcessor.getFullTestName("some_test");
|
||||
final SMTestProxy proxy = myEventsProcessor.getProxyByFullTestName(fullName);
|
||||
|
||||
assertNotNull(proxy);
|
||||
assertTrue(proxy.isDefect());
|
||||
assertFalse(proxy.isInProgress());
|
||||
}
|
||||
|
||||
public void testOnTestFailure_Twice() {
|
||||
myMockResettablePrinter.resetIfNecessary();
|
||||
onTestStarted("some_test");
|
||||
|
||||
Reference in New Issue
Block a user