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

Issue 14021021: Unit test improvements. (Closed)

Created:
7 years, 8 months ago by gram
Modified:
7 years, 7 months ago
CC:
reviews_dartlang.org, Bob Nystrom
Visibility:
Public.

Description

Unit test improvements. The base config now sets things up so failed expects are routed through it. A flag controls whether or not an expect failure stops the test (the default) or if the test keeps pressing on. Another flag has been added to disable the exception that gets thrown at the end of there were errors. The default remains to throw. Finally, some cleaning up of test failure stacks is done. In particular we remove internal unittest frames from the stack. R=sigmund@google.com Committed: https://code.google.com/p/dart/source/detail?r=22186

Patch Set 1 #

Total comments: 18

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -11 lines) Patch
M pkg/unittest/lib/src/config.dart View 1 2 5 chunks +87 lines, -3 lines 0 comments Download
M pkg/unittest/lib/src/test_case.dart View 1 4 chunks +4 lines, -1 line 0 comments Download
M pkg/unittest/lib/unittest.dart View 1 2 3 4 4 chunks +91 lines, -7 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
gram
7 years, 8 months ago (2013-04-27 00:44:57 UTC) #1
Siggi Cherem (dart-lang)
+bob Is there any chance that the stack_trace package could be converted to work in ...
7 years, 8 months ago (2013-04-27 01:36:08 UTC) #2
gram
PTAL https://codereview.chromium.org/14021021/diff/1/pkg/unittest/lib/src/config.dart File pkg/unittest/lib/src/config.dart (right): https://codereview.chromium.org/14021021/diff/1/pkg/unittest/lib/src/config.dart#newcode101 pkg/unittest/lib/src/config.dart:101: StringBuffer reason = new StringBuffer(); On 2013/04/27 01:36:08, ...
7 years, 7 months ago (2013-04-29 21:24:18 UTC) #3
Siggi Cherem (dart-lang)
Thanks Graham LGTM, modulo the 'max' comment below. https://codereview.chromium.org/14021021/diff/1/pkg/unittest/lib/unittest.dart File pkg/unittest/lib/unittest.dart (right): https://codereview.chromium.org/14021021/diff/1/pkg/unittest/lib/unittest.dart#newcode190 pkg/unittest/lib/unittest.dart:190: _config ...
7 years, 7 months ago (2013-04-30 00:42:32 UTC) #4
gram
PTAL https://codereview.chromium.org/14021021/diff/1/pkg/unittest/lib/unittest.dart File pkg/unittest/lib/unittest.dart (right): https://codereview.chromium.org/14021021/diff/1/pkg/unittest/lib/unittest.dart#newcode190 pkg/unittest/lib/unittest.dart:190: _config = new Configuration(); On 2013/04/30 00:42:33, Siggi ...
7 years, 7 months ago (2013-04-30 01:00:09 UTC) #5
Siggi Cherem (dart-lang)
thanks! LGTM https://codereview.chromium.org/14021021/diff/15001/pkg/unittest/lib/unittest.dart File pkg/unittest/lib/unittest.dart (right): https://codereview.chromium.org/14021021/diff/15001/pkg/unittest/lib/unittest.dart#newcode172 pkg/unittest/lib/unittest.dart:172: import 'dart:math'; + 'show max' (it defines ...
7 years, 7 months ago (2013-04-30 02:26:57 UTC) #6
gram
7 years, 7 months ago (2013-04-30 17:34:40 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r22186 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698