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

Unified Diff: test/runner/expanded_reporter_test.dart

Issue 1124113002: Add a flag controlling how verbose stack traces are. (Closed) Base URL: git@github.com:dart-lang/test.git@master
Patch Set: Created 5 years, 7 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 144e92bc03a3924c22ecb5afcf2bbaf296ebe1ef..874d0bc524b3209564fa3aa64c68d6cd3abfefe5 100644
--- a/test/runner/expanded_reporter_test.dart
+++ b/test/runner/expanded_reporter_test.dart
@@ -58,6 +58,23 @@ void main() {
+0 -3: Some tests failed.""");
});
+ test("includes the full stack trace with --verbose-trace", () {
+ return withTempDir((path) {
+ new File(p.join(path, "test.dart")).writeAsStringSync("""
+import 'dart:async';
+
+import 'package:test/test.dart';
+
+void main() {
+ test("failure", () => throw "oh no");
+}
+""");
+ var result = runTest(["-r", "compact", "--verbose-trace", "test.dart"],
+ workingDirectory: path);
+ expect(result.stdout, contains("dart:isolate-patch"));
+ });
+ });
+
test("runs failing tests along with successful tests", () {
_expectReport("""
test('failure 1', () => throw new TestFailure('oh no'));
« 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