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

Unified Diff: test/runner/expanded_reporter_test.dart

Issue 1219653003: Print the full names of tests where possible. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 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 | « test/runner/compact_reporter_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/expanded_reporter_test.dart
diff --git a/test/runner/expanded_reporter_test.dart b/test/runner/expanded_reporter_test.dart
index 984353a02288e1d936ef2e1b52f64ea8245c36f5..d22ad8d322474b4c64f3f1264679f7d6b6fa0935 100644
--- a/test/runner/expanded_reporter_test.dart
+++ b/test/runner/expanded_reporter_test.dart
@@ -97,6 +97,17 @@ void main() {
+2 -2: Some tests failed.""");
});
+ test("always prints the full test name", () {
+ _expectReport("""
+ test(
+ 'really gosh dang long test name. Even longer than that. No, yet '
+ 'longer. A little more... okay, that should do it.',
+ () {});""",
+ """
+ +0: really gosh dang long test name. Even longer than that. No, yet longer. A little more... okay, that should do it.
+ +1: All tests passed!""");
+ });
+
test("gracefully handles multiple test failures in a row", () {
_expectReport("""
// This completer ensures that the test isolate isn't killed until all
« no previous file with comments | « test/runner/compact_reporter_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698