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

Issue 13464020: unittest: big cleanup, tightened test semantics (Closed)

Created:
7 years, 8 months ago by kevmoo-old
Modified:
7 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

unittest: big cleanup, tightened test semantics This ensures that group/test etc are not called when the test system is already running Committed: https://code.google.com/p/dart/source/detail?r=21707

Patch Set 1 #

Patch Set 2 : more better #

Patch Set 3 : setup and teardown, too #

Patch Set 4 : nits #

Patch Set 5 : removed unused private methods while we're at it #

Total comments: 25

Patch Set 6 : fix breaks, remove toplevel _currentTestCaseIndex entirely #

Total comments: 17

Patch Set 7 : sdk updates #

Patch Set 8 : using Future correctly #

Patch Set 9 : fixed analysis complaints, added docs to _nextBatch #

Patch Set 10 : fixed json_test again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -125 lines) Patch
M pkg/unittest/lib/unittest.dart View 1 2 3 4 5 6 7 8 9 20 chunks +62 lines, -124 lines 0 comments Download
M tests/lib/json/json_test.dart View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
kevmoo-old
This does some nice things 0) Make it illegal to test(), group(), setup(), tearDown(), filterTests() ...
7 years, 8 months ago (2013-04-06 16:18:30 UTC) #1
kevmoo-old
Updates to un-break pub tests. Refactored async run logic to remove top-level _currentTestCaseIndex field. https://codereview.chromium.org/13464020/diff/11001/pkg/unittest/lib/unittest.dart ...
7 years, 8 months ago (2013-04-06 17:56:34 UTC) #2
Andrei Mouravski
These comments are as much for gram as they are for kevmoo. (P.S. everything looks ...
7 years, 8 months ago (2013-04-06 22:41:53 UTC) #3
kevmoo-old
Thanks for the notes, Andrei. Please look at the last update. The index has gone ...
7 years, 8 months ago (2013-04-06 23:00:40 UTC) #4
kevmoo-old
Re-addressing some of Andrei's notes inline with the latest delta https://codereview.chromium.org/13464020/diff/16001/pkg/unittest/lib/unittest.dart File pkg/unittest/lib/unittest.dart (right): https://codereview.chromium.org/13464020/diff/16001/pkg/unittest/lib/unittest.dart#newcode573 ...
7 years, 8 months ago (2013-04-06 23:10:03 UTC) #5
Andrei Mouravski
I think the unittest library needs some rearchitecting... https://codereview.chromium.org/13464020/diff/11001/pkg/unittest/lib/unittest.dart File pkg/unittest/lib/unittest.dart (right): https://codereview.chromium.org/13464020/diff/11001/pkg/unittest/lib/unittest.dart#newcode627 pkg/unittest/lib/unittest.dart:627: void ...
7 years, 8 months ago (2013-04-07 19:15:54 UTC) #6
Andrei Mouravski
P.S. Don't worry about the broader changes I suggest here. Just the small stuff. :]
7 years, 8 months ago (2013-04-08 16:48:30 UTC) #7
Andrei Mouravski
On 2013/04/08 16:48:30, Andrei Mouravski wrote: > P.S. Don't worry about the broader changes I ...
7 years, 8 months ago (2013-04-18 13:45:19 UTC) #8
kevmoo-old
Addressed many comments. Added docs to _guardAsync Added type to the testCases view to make ...
7 years, 8 months ago (2013-04-18 16:13:54 UTC) #9
gram
lgtm, but make sure you retest after integrating r21702 before submitting. https://codereview.chromium.org/13464020/diff/11001/pkg/unittest/lib/unittest.dart File pkg/unittest/lib/unittest.dart (right): ...
7 years, 8 months ago (2013-04-18 20:46:08 UTC) #10
kevmoo-old
Committed patchset #10 manually as r21707 (presubmit successful).
7 years, 8 months ago (2013-04-18 21:34:44 UTC) #11
siva
7 years, 8 months ago (2013-04-18 23:04:49 UTC) #12
Message was sent while issue was closed.
On 2013/04/18 21:34:44, kevmoo wrote:
> Committed patchset #10 manually as r21707 (presubmit successful).

The dartium builds on the buildbot seem to be broken after this CL.

Powered by Google App Engine
This is Rietveld 408576698