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

Issue 12770017: pkg/unittest: config refactor (Closed)

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

Description

pkg/unittest: config refactor Make the configure method a setter (per existing TODO) Committed: https://code.google.com/p/dart/source/detail?r=20462

Patch Set 1 #

Total comments: 6

Patch Set 2 : per siggi's recomendations #

Total comments: 2

Patch Set 3 : renames, fixed throw #

Patch Set 4 : fixed scheduled_test test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -35 lines) Patch
M pkg/scheduled_test/test/metatest.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M pkg/unittest/lib/compact_vm_config.dart View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M pkg/unittest/lib/html_config.dart View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M pkg/unittest/lib/html_enhanced_config.dart View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M pkg/unittest/lib/html_individual_config.dart View 1 2 2 chunks +5 lines, -3 lines 1 comment Download
M pkg/unittest/lib/interactive_html_config.dart View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M pkg/unittest/lib/unittest.dart View 1 2 2 chunks +14 lines, -11 lines 1 comment Download
M pkg/unittest/lib/vm_config.dart View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M pkg/unittest/test/unittest_test.dart View 1 2 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
kevmoo-old
PTAL Define a config setter to go along with the getter (per TODO) Deprecated the ...
7 years, 9 months ago (2013-03-23 22:44:26 UTC) #1
Siggi Cherem (dart-lang)
https://codereview.chromium.org/12770017/diff/1/pkg/unittest/lib/compact_vm_config.dart File pkg/unittest/lib/compact_vm_config.dart (left): https://codereview.chromium.org/12770017/diff/1/pkg/unittest/lib/compact_vm_config.dart#oldcode174 pkg/unittest/lib/compact_vm_config.dart:174: if (config != null) return; Let's keep this part ...
7 years, 9 months ago (2013-03-24 17:20:08 UTC) #2
kevmoo-old
Sound reasonable? https://codereview.chromium.org/12770017/diff/1/pkg/unittest/lib/compact_vm_config.dart File pkg/unittest/lib/compact_vm_config.dart (left): https://codereview.chromium.org/12770017/diff/1/pkg/unittest/lib/compact_vm_config.dart#oldcode174 pkg/unittest/lib/compact_vm_config.dart:174: if (config != null) return; How about ...
7 years, 9 months ago (2013-03-24 18:00:02 UTC) #3
Siggi Cherem (dart-lang)
https://codereview.chromium.org/12770017/diff/1/pkg/unittest/lib/compact_vm_config.dart File pkg/unittest/lib/compact_vm_config.dart (left): https://codereview.chromium.org/12770017/diff/1/pkg/unittest/lib/compact_vm_config.dart#oldcode174 pkg/unittest/lib/compact_vm_config.dart:174: if (config != null) return; On 2013/03/24 18:00:02, kevmoo ...
7 years, 9 months ago (2013-03-24 18:18:41 UTC) #4
Andrei Mouravski
https://codereview.chromium.org/12770017/diff/1/pkg/unittest/lib/unittest.dart File pkg/unittest/lib/unittest.dart (right): https://codereview.chromium.org/12770017/diff/1/pkg/unittest/lib/unittest.dart#newcode159 pkg/unittest/lib/unittest.dart:159: import 'package:meta/meta.dart'; On 2013/03/24 17:20:09, Siggi Cherem (dart-lang) wrote: ...
7 years, 9 months ago (2013-03-24 18:49:23 UTC) #5
kevmoo-old
> From what I remember, this wasn't working because dartdoc, and by extension, > apidoc, ...
7 years, 9 months ago (2013-03-25 14:54:59 UTC) #6
kevmoo-old
Updated w/ Siggi's singelton recommendation. PTAL
7 years, 9 months ago (2013-03-25 15:15:19 UTC) #7
Emily Fortuna
looks good to me, but I'd wait until you get confirmation from someone else, (gram? ...
7 years, 9 months ago (2013-03-25 17:00:15 UTC) #8
gram
lgtm with one possible issue. https://codereview.chromium.org/12770017/diff/9001/pkg/unittest/test/unittest_test.dart File pkg/unittest/test/unittest_test.dart (right): https://codereview.chromium.org/12770017/diff/9001/pkg/unittest/test/unittest_test.dart#newcode76 pkg/unittest/test/unittest_test.dart:76: config = _testconfig; I ...
7 years, 9 months ago (2013-03-25 17:09:19 UTC) #9
kevmoo-old
https://codereview.chromium.org/12770017/diff/9001/pkg/unittest/test/unittest_test.dart File pkg/unittest/test/unittest_test.dart (right): https://codereview.chromium.org/12770017/diff/9001/pkg/unittest/test/unittest_test.dart#newcode76 pkg/unittest/test/unittest_test.dart:76: config = _testconfig; or go all the way and ...
7 years, 9 months ago (2013-03-25 17:11:52 UTC) #10
kevmoo-old
Updated. PTAL.
7 years, 9 months ago (2013-03-25 17:32:58 UTC) #11
gram
lgtm
7 years, 9 months ago (2013-03-25 17:39:11 UTC) #12
kevmoo-old
Committed patchset #4 manually as r20462 (presubmit successful).
7 years, 9 months ago (2013-03-25 18:03:25 UTC) #13
Siggi Cherem (dart-lang)
lgtm sorry for the slow response, I was out of the office the last couple ...
7 years, 9 months ago (2013-03-27 21:05:58 UTC) #14
Siggi Cherem (dart-lang)
7 years, 9 months ago (2013-03-27 21:06:43 UTC) #15
Message was sent while issue was closed.
On 2013/03/27 21:05:58, Siggi Cherem (dart-lang) wrote:
> lgtm
> 
> sorry for the slow response, I was out of the office the last couple days.
> 
>
https://codereview.chromium.org/12770017/diff/19001/pkg/unittest/lib/html_ind...
> File pkg/unittest/lib/html_individual_config.dart (right):
> 
>
https://codereview.chromium.org/12770017/diff/19001/pkg/unittest/lib/html_ind...
> pkg/unittest/lib/html_individual_config.dart:51:
unittest.unittestConfiguration
> = isLayoutTest ? _singletonLayout : _singletonNotLayout;
> nit: 80 col
> 
>
https://codereview.chromium.org/12770017/diff/19001/pkg/unittest/lib/unittest...
> File pkg/unittest/lib/unittest.dart (right):
> 
>
https://codereview.chromium.org/12770017/diff/19001/pkg/unittest/lib/unittest...
> pkg/unittest/lib/unittest.dart:171: Configuration get unittestConfiguration =>
> _config;
> I wouldn't be too scared about external name collisions: if someone runs into
> one, they can include the library with a prefix. But I agree with Kevin: full
> names is better than abbreviations on public APIs.
> 
> I have a slight preference for just calling it "configuration"
> (unittestConfiguration feels redundant), but I'm OK submitting as it is.

or should I say: I'm OK leaving it as it is submitted =)

PS: thanks for all the cleanup!

Powered by Google App Engine
This is Rietveld 408576698