Skip to content

Commit 213a1bc

Browse files
committed
Added some extra output to provide some hints for creating a new anomaly file
1 parent 0196ed8 commit 213a1bc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/src/core/qgsrenderchecker.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,17 @@ bool QgsRenderChecker::compareImages( QString theTestName,
318318
}
319319
else
320320
{
321+
QString myMessage = "Difference image did not match any known anomaly.";
321322
mReport += "<tr><td colspan=3>"
322-
"Difference image did not match any known anomaly."
323323
"</td></tr>";
324+
QString myMeasureMessage = "<DartMeasurement name=\"No Anomalies Match"
325+
"\" type=\"text/text\">" + myMessage +
326+
" If you feel the difference image should be considered an anomaly "
327+
"you can do something like this\n"
328+
"cp " + myDiffImageFile + "../tests/testdata/control_images/" + theTestName +
329+
"/<imagename>.png"
330+
"</DartMeasurement>";
331+
qDebug() << myMeasureMessage;
324332
}
325333

326334
if ( mMismatchCount <= theMismatchCount)

0 commit comments

Comments
 (0)