mirror of
https://github.com/google/googletest.git
synced 2025-12-06 16:57:00 +08:00
Merge aaebbb24f65fe9ba33c679b4c1ea4311948b168e into 1b96fa13f549387b7549cc89e1a785cf143a1a50
This commit is contained in:
commit
cb0468372d
@ -1196,7 +1196,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");
|
||||
}
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user