chore(tests): print more errors when snapshot tests fail (#5839)

This commit is contained in:
pajlada
2025-01-19 17:15:02 +01:00
committed by GitHub
parent b91985e4df
commit 58748d0ca7
+5 -1
View File
@@ -603,7 +603,11 @@ TEST_P(TestIrcMessageHandlerP, Run)
delete ircMessage;
ASSERT_TRUE(snapshot->run(got, UPDATE_SNAPSHOTS));
ASSERT_TRUE(snapshot->run(got, UPDATE_SNAPSHOTS))
<< "Snapshot " << snapshot->name() << " failed. Expected JSON to be\n"
<< QJsonDocument::fromVariant(snapshot->output().toVariant()).toJson()
<< "\nbut got\n"
<< QJsonDocument(got).toJson() << "\ninstead.";
}
INSTANTIATE_TEST_SUITE_P(