Add skipped= to streaming results TestEnd event (fixes #3411).

This commit is contained in:
David Matson 2025-01-17 15:24:54 -08:00
parent 2b6b042a77
commit aaebbb24f6
2 changed files with 3 additions and 2 deletions

View file

@ -1192,7 +1192,8 @@ class StreamingListener : public EmptyTestEventListener {
void OnTestEnd(const TestInfo& test_info) override {
SendLn("event=TestEnd&passed=" +
FormatBool((test_info.result())->Passed()) + "&elapsed_time=" +
FormatBool((test_info.result())->Passed()) + "&skipped=" +
FormatBool((test_info.result())->Skipped()) + "&elapsed_time=" +
StreamableToString((test_info.result())->elapsed_time()) + "ms");
}

View file

@ -151,7 +151,7 @@ TEST_F(StreamingListenerTest, OnTestStart) {
TEST_F(StreamingListenerTest, OnTestEnd) {
*output() = "";
streamer_.OnTestEnd(test_info_obj_);
EXPECT_EQ("event=TestEnd&passed=1&elapsed_time=0ms\n", *output());
EXPECT_EQ("event=TestEnd&passed=1&skipped=0&elapsed_time=0ms\n", *output());
}
TEST_F(StreamingListenerTest, OnTestPartResult) {