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')); |