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

Unified Diff: test/runner/compact_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 | « pubspec.yaml ('k') | test/runner/expanded_reporter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/compact_reporter_test.dart
diff --git a/test/runner/compact_reporter_test.dart b/test/runner/compact_reporter_test.dart
index a03862ec280a374269ef81faf13cbc94bc78f1a5..7fd2a2727fca102fcd5f7d9c2c3e419c790c6874 100644
--- a/test/runner/compact_reporter_test.dart
+++ b/test/runner/compact_reporter_test.dart
@@ -64,6 +64,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 | « pubspec.yaml ('k') | test/runner/expanded_reporter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698