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 867133002: pkg/matcher: refactor with unittest v0.12 work (Closed)

Created:
5 years, 11 months ago by kevmoo
Modified:
5 years, 10 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/matcher.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : working #

Patch Set 3 : changelog tweaks #

Total comments: 16

Patch Set 4 : cl nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -1152 lines) Patch
M CHANGELOG.md View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M lib/matcher.dart View 1 chunk +0 lines, -5 lines 0 comments Download
D lib/src/expect.dart View 1 chunk +0 lines, -177 lines 0 comments Download
D lib/src/future_matchers.dart View 1 chunk +0 lines, -75 lines 0 comments Download
D lib/src/prints_matcher.dart View 1 chunk +0 lines, -73 lines 0 comments Download
D lib/src/throws_matcher.dart View 1 chunk +0 lines, -112 lines 0 comments Download
D lib/src/throws_matchers.dart View 1 chunk +0 lines, -44 lines 0 comments Download
M pubspec.yaml View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M test/core_matchers_test.dart View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
D test/future_matchers_test.dart View 1 chunk +0 lines, -76 lines 0 comments Download
M test/iterable_matchers_test.dart View 1 chunk +0 lines, -2 lines 0 comments Download
D test/matchers_minified_test.dart View 1 chunk +0 lines, -143 lines 0 comments Download
D test/matchers_unminified_test.dart View 1 chunk +0 lines, -140 lines 0 comments Download
M test/mirror_matchers_test.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M test/numeric_matchers_test.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M test/operator_matchers_test.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M test/pretty_print_minified_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M test/pretty_print_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M test/pretty_print_unminified_test.dart View 1 chunk +1 line, -1 line 0 comments Download
D test/prints_matcher_test.dart View 1 chunk +0 lines, -102 lines 0 comments Download
M test/string_matchers_test.dart View 1 1 chunk +1 line, -3 lines 0 comments Download
D test/test_common.dart View 1 chunk +0 lines, -58 lines 0 comments Download
M test/test_utils.dart View 1 2 chunks +10 lines, -59 lines 0 comments Download
D test/throws_matchers_test.dart View 1 chunk +0 lines, -67 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
kevmoo
5 years, 10 months ago (2015-02-17 21:11:00 UTC) #2
nweiz
https://codereview.chromium.org/867133002/diff/40001/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/867133002/diff/40001/CHANGELOG.md#newcode4 CHANGELOG.md:4: [`unittest`](https://pub.dartlang.org/packages/unittest) package. Nit: indent +2. Also below. https://codereview.chromium.org/867133002/diff/40001/CHANGELOG.md#newcode5 CHANGELOG.md:5: ...
5 years, 10 months ago (2015-02-17 23:17:43 UTC) #3
kevmoo
https://codereview.chromium.org/867133002/diff/40001/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/867133002/diff/40001/CHANGELOG.md#newcode4 CHANGELOG.md:4: [`unittest`](https://pub.dartlang.org/packages/unittest) package. On 2015/02/17 23:17:42, nweiz wrote: > Nit: ...
5 years, 10 months ago (2015-02-18 00:33:40 UTC) #4
nweiz
lgtm, although I do think you should remove "show". https://codereview.chromium.org/867133002/diff/40001/test/operator_matchers_test.dart File test/operator_matchers_test.dart (right): https://codereview.chromium.org/867133002/diff/40001/test/operator_matchers_test.dart#newcode9 test/operator_matchers_test.dart:9: ...
5 years, 10 months ago (2015-02-18 00:42:07 UTC) #5
kevmoo
Committed patchset #4 (id:60001) manually as 14747b0658911cd55d140ba966653f9fbc915eab (presubmit successful).
5 years, 10 months ago (2015-02-18 00:49:42 UTC) #6
kevmoo
5 years, 10 months ago (2015-02-18 00:49:50 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/867133002/diff/40001/test/operator_matchers_t...
File test/operator_matchers_test.dart (right):

https://codereview.chromium.org/867133002/diff/40001/test/operator_matchers_t...
test/operator_matchers_test.dart:9: show test, group, expect,
throwsArgumentError;
On 2015/02/18 00:42:07, nweiz wrote:
> On 2015/02/18 00:33:40, kevmoo wrote:
> > On 2015/02/17 23:17:42, nweiz wrote:
> > > Don't use "show" unless we absolutely have to.
> > 
> > This is very explicit. Since unittest exports matcher, I want to be clear
what
> > we're getting from the matcher package and what we're getting from unittest.
> 
> There's no distinction between the test getting something "from matcher" or
> "from unittest". It's the same member regardless.
> 
> > If I eleminate 'show', I could just remove the matcher import entirely and
> this
> > code still works
> 
> I don't necessarily think this is a bad thing.

To put it another way: unittest could change what it exports at any time and it
shouldn't affect the code's ability to run. Let's agree to disagree. :-)

Powered by Google App Engine
This is Rietveld 408576698