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

Issue 75393002: unittest: A unittest with 0 test cases should PASS, fixed incorrect unittest-suite-* messages

Created:
7 years, 1 month ago by kustermann
Modified:
5 years, 7 months ago
CC:
reviews_dartlang.org, ricow1
Visibility:
Public.

Description

unittest: A unittest with 0 test cases should PASS, fixed incorrect unittest-suite-* messages

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -2 lines) Patch
M pkg/unittest/lib/html_config.dart View 1 chunk +5 lines, -1 line 0 comments Download
M pkg/unittest/lib/html_enhanced_config.dart View 1 chunk +5 lines, -1 line 0 comments Download
M tests/html/html.status View 1 1 chunk +40 lines, -0 lines 2 comments Download

Messages

Total messages: 14 (1 generated)
kustermann
7 years, 1 month ago (2013-11-18 15:58:24 UTC) #1
Jennifer Messerly
+Bob, he might have more context. IIRC, we've had bugs before where tests fail to ...
7 years, 1 month ago (2013-11-18 21:32:39 UTC) #2
Bob Nystrom
The current behavior is by design. If you have a file with no tests, it ...
7 years, 1 month ago (2013-11-18 21:44:19 UTC) #3
blois
On 2013/11/18 21:44:19, Bob Nystrom wrote: > The current behavior is by design. If you ...
7 years, 1 month ago (2013-11-18 21:56:33 UTC) #4
Bob Nystrom
On 2013/11/18 21:56:33, blois wrote: > On 2013/11/18 21:44:19, Bob Nystrom wrote: > > The ...
7 years, 1 month ago (2013-11-18 22:02:53 UTC) #5
blois
On 2013/11/18 22:02:53, Bob Nystrom wrote: > On 2013/11/18 21:56:33, blois wrote: > > On ...
7 years, 1 month ago (2013-11-19 00:47:57 UTC) #6
kustermann
My 2c/opinions: The motivation for this CL was that there are html tests which enqueue ...
7 years, 1 month ago (2013-11-19 12:05:37 UTC) #7
Bob Nystrom
On 2013/11/19 12:05:37, kustermann wrote: > The motivation for this CL was that there are ...
7 years, 1 month ago (2013-11-19 16:55:10 UTC) #8
kustermann
PTAL. I removed now the controversial part (i.e. as bob insisted, 0 tests == failure) ...
7 years, 1 month ago (2013-11-21 17:31:19 UTC) #9
Bob Nystrom
LGTM, but please check with someone who knows the HTML configs better than I too. ...
7 years, 1 month ago (2013-11-21 18:33:15 UTC) #10
Emily Fortuna
We shouldn't commit this without adding in dummy tests or what have you for the ...
7 years, 1 month ago (2013-11-21 19:07:03 UTC) #11
kustermann
I'll wait with this CL. Since the unittest framework says "0 tests == failure" and ...
7 years, 1 month ago (2013-11-21 22:17:23 UTC) #12
blois
7 years, 1 month ago (2013-11-21 23:59:17 UTC) #13
On 2013/11/21 22:17:23, kustermann wrote:
> I'll wait with this CL.
> 
> Since the unittest framework says "0 tests == failure" and we have a lot of
> these, they should be fixed. I'd be very thankful if this could be done in the
> near future.
> 
> https://codereview.chromium.org/75393002/diff/110001/tests/html/html.status
> File tests/html/html.status (right):
> 
>
https://codereview.chromium.org/75393002/diff/110001/tests/html/html.status#n...
> tests/html/html.status:423: custom/document_register_type_extensions_test/*:
> Pass, RuntimeError
> On 2013/11/21 19:07:04, Emily Fortuna wrote:
> > does * work here? I wasn't aware of that.
> 
> Yes it does work. It's necessary in this case, because the unittest
> 'group("...")' name contains spaces, which is not supported in status files --
> so I match them with '*'.

Alternatively is what I suggested earlier- modify html_individual_config to
allow passing with zero tests.

CL doing that is at: https://codereview.chromium.org/82113002

Siggi and I (and more) will be in Aarhus in 1.5 weeks, should discuss ideas on
test refactoring which may allow us to get away from html_individual_config.

Powered by Google App Engine
This is Rietveld 408576698