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

Issue 11829045: Cleaning up unittest configurations (Closed)

Created:
7 years, 11 months ago by Siggi Cherem (dart-lang)
Modified:
7 years, 11 months ago
Reviewers:
ahe, gram, Jennifer Messerly
CC:
reviews_dartlang.org, ahe
Visibility:
Public.

Description

This change does a couple fixes to configurations: - it renames '_postMessage' so that it can be overriden by configurations that don't need it. - it splits the onDone callback in two: onSummary - a callback with all the results, and onDone - a callback with just the end result. The idea is that onSummary is mostly dedicated to reporting results, while onDone is about notifying that unittest is done. This split is very useful for subclasses that only want to override onSummary or onDone. Committed: https://code.google.com/p/dart/source/detail?r=16899

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -47 lines) Patch
M pkg/unittest/lib/compact_vm_config.dart View 1 2 3 4 chunks +6 lines, -5 lines 0 comments Download
M pkg/unittest/lib/html_config.dart View 1 1 chunk +5 lines, -2 lines 0 comments Download
M pkg/unittest/lib/html_enhanced_config.dart View 1 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/unittest/lib/html_layout_config.dart View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M pkg/unittest/lib/interactive_html_config.dart View 1 2 chunks +8 lines, -3 lines 0 comments Download
M pkg/unittest/lib/src/config.dart View 1 2 4 chunks +23 lines, -6 lines 0 comments Download
M pkg/unittest/lib/unittest.dart View 1 1 chunk +9 lines, -8 lines 0 comments Download
M pkg/unittest/lib/vm_config.dart View 1 2 3 1 chunk +8 lines, -7 lines 1 comment Download
M pkg/unittest/test/unittest_test.dart View 1 1 chunk +7 lines, -3 lines 0 comments Download
M utils/testrunner/standard_test_runner.dart View 1 3 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Siggi Cherem (dart-lang)
Hi Peter - I don't believe the rename of _postMessage should affect the dart2js tests ...
7 years, 11 months ago (2013-01-10 02:21:42 UTC) #1
Jennifer Messerly
https://codereview.chromium.org/11829045/diff/3/pkg/unittest/lib/compact_vm_config.dart File pkg/unittest/lib/compact_vm_config.dart (right): https://codereview.chromium.org/11829045/diff/3/pkg/unittest/lib/compact_vm_config.dart#newcode85 pkg/unittest/lib/compact_vm_config.dart:85: } on Exception catch(ex) { should this just be ...
7 years, 11 months ago (2013-01-10 02:31:32 UTC) #2
Siggi Cherem (dart-lang)
https://codereview.chromium.org/11829045/diff/3/pkg/unittest/lib/compact_vm_config.dart File pkg/unittest/lib/compact_vm_config.dart (right): https://codereview.chromium.org/11829045/diff/3/pkg/unittest/lib/compact_vm_config.dart#newcode85 pkg/unittest/lib/compact_vm_config.dart:85: } on Exception catch(ex) { On 2013/01/10 02:31:32, John ...
7 years, 11 months ago (2013-01-10 02:44:49 UTC) #3
Jennifer Messerly
lgtm https://codereview.chromium.org/11829045/diff/5001/pkg/unittest/lib/vm_config.dart File pkg/unittest/lib/vm_config.dart (left): https://codereview.chromium.org/11829045/diff/5001/pkg/unittest/lib/vm_config.dart#oldcode26 pkg/unittest/lib/vm_config.dart:26: void useVmConfiguration() { totally optional but: is it ...
7 years, 11 months ago (2013-01-10 03:01:18 UTC) #4
Siggi Cherem (dart-lang)
On 2013/01/10 03:01:18, John Messerly wrote: > lgtm > > https://codereview.chromium.org/11829045/diff/5001/pkg/unittest/lib/vm_config.dart > File pkg/unittest/lib/vm_config.dart (left): ...
7 years, 11 months ago (2013-01-10 03:35:31 UTC) #5
ahe
I understand that it is very annoying that the tests print an additional message, but ...
7 years, 11 months ago (2013-01-10 09:12:37 UTC) #6
Siggi Cherem (dart-lang)
7 years, 11 months ago (2013-01-10 16:41:51 UTC) #7
Message was sent while issue was closed.
On 2013/01/10 09:12:37, ahe wrote:
> I understand that it is very annoying that the tests print an additional
> message, but this is nothing compared to failing tests being recorded as
> passing. That is what happens with this change.
> 
> I'd really appreciate if you could revert this until we can get a chance to
> discuss the details in VC as suggested on Sep 22, 2012 when you first
suggested
> making this change.
> 
> I don't think the situation has changed since then, and I'm surprised that you
> have essentially implemented exactly what I pointed out was problematic.

Sorry for the misunderstanding - I reverted the changes to _postMessage in
r16925.

When we were talking on Sep 22 we were chatting about two options, using
wrappers or renaming the method. I was unaware of the problems with wrappers,
which you clarified, so I thought that was the main concern you had. I,
incorrectly, thought the other approach was still valid.

Let's chat when you get a chance. 
Cheers,
Siggi

Powered by Google App Engine
This is Rietveld 408576698