| Index: lib/unittest/config.dart
|
| diff --git a/lib/unittest/config.dart b/lib/unittest/config.dart
|
| index c0a2f78daddb6cc67c700d16e4233caa3121c5e7..19560de956054ed58d40b81d0e95a26b9a8998c5 100644
|
| --- a/lib/unittest/config.dart
|
| +++ b/lib/unittest/config.dart
|
| @@ -46,7 +46,11 @@ class Configuration {
|
| print('${t.result.toUpperCase()}: ${t.description}');
|
|
|
| if (t.message != '') {
|
| - print(' ${t.message}');
|
| + print(_indent(t.message));
|
| + }
|
| +
|
| + if (t.stackTrace != null && t.stackTrace != '') {
|
| + print(_indent(t.stackTrace));
|
| }
|
| }
|
|
|
| @@ -71,4 +75,11 @@ class Configuration {
|
| // An exception is used by the test infrastructure to detect failure.
|
| if (!success) throw new Exception("Some tests failed.");
|
| }
|
| +
|
| + String _indent(String str) {
|
| + // TODO(nweiz): Use this simpler code once issue 2980 is fixed.
|
| + // return str.replaceAll(const RegExp("^", multiLine: true), " ");
|
| +
|
| + return Strings.join(str.split("\n").map((line) => " $line"), "\n");
|
| + }
|
| }
|
|
|