Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: lib/src/runner/reporter/json.dart

Issue 2091173002: Add metadata to messages emitted by live tests. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/runner/reporter/expanded.dart ('k') | lib/src/runner/runner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/reporter/json.dart
diff --git a/lib/src/runner/reporter/json.dart b/lib/src/runner/reporter/json.dart
index f30c206f9c52a956f4254dc63d985c8b00e8ec90..3348bddda8f3d6030e75a70e473ad74564fc09bd 100644
--- a/lib/src/runner/reporter/json.dart
+++ b/lib/src/runner/reporter/json.dart
@@ -154,10 +154,11 @@ class JsonReporter implements Reporter {
_subscriptions.add(liveTest.onError.listen((error) =>
_onError(liveTest, error.error, error.stackTrace)));
- _subscriptions.add(liveTest.onPrint.listen((line) {
+ _subscriptions.add(liveTest.onMessage.listen((message) {
_emit("print", {
"testID": id,
- "message": line
+ "messageType": message.type.name,
+ "message": message.text
});
}));
}
« no previous file with comments | « lib/src/runner/reporter/expanded.dart ('k') | lib/src/runner/runner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698