This commit is contained in:
David Matson 2025-02-17 11:29:58 -08:00 committed by GitHub
commit e12c859c22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) {