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

Issue 8771007: tools/test.dart: Add summary report of the number of tests with each expectation. (Closed)

Created:
9 years ago by Bill Hesse
Modified:
9 years ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

tools/test.dart: Add summary report of the number of tests with each expectation. BUG= TEST=tools/test.dart --report Committed: https://code.google.com/p/dart/source/detail?r=2017

Patch Set 1 #

Patch Set 2 : Upload report #

Total comments: 4

Patch Set 3 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -1 line) Patch
M tools/testing/dart/status_file_parser.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tools/testing/dart/test_options.dart View 1 chunk +7 lines, -0 lines 0 comments Download
M tools/testing/dart/test_progress.dart View 5 chunks +5 lines, -0 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 3 chunks +63 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Bill Hesse
Produces the same numbers as test.py on standalone and language. The numbers are computed strangely, ...
9 years ago (2011-12-01 16:31:13 UTC) #1
Mads Ager (google)
9 years ago (2011-12-01 19:53:53 UTC) #2
LGTM

I agree with you that we should probably improve on this reporting. I don't like
that test marked as either crashing or failing are not taking into account in
the break down.

http://codereview.chromium.org/8771007/diff/2001/tools/testing/dart/test_suit...
File tools/testing/dart/test_suite.dart (right):

http://codereview.chromium.org/8771007/diff/2001/tools/testing/dart/test_suit...
tools/testing/dart/test_suite.dart:210: if (configuration["report"]) {
You want to add this above in the CCTestSuite as well. Potentially extract this
into a helper now that getting the expectations is more than a line?

http://codereview.chromium.org/8771007/diff/2001/tools/testing/dart/test_suit...
tools/testing/dart/test_suite.dart:424: static void add(Set<String> expect) {
I'd spell out 'expectations'.

http://codereview.chromium.org/8771007/diff/2001/tools/testing/dart/test_suit...
tools/testing/dart/test_suite.dart:433: if (expect.contains(PASS) &&
expect.isSubsetOf([PASS])) {
I would prefer:

expect.contains(PASS) && expect.length == 1

PASS is in there and there is only that element.

Similarly below:

expect.containsAll([FAIL, OK]) && expect.length == 2

I don't have strong opinions on it though and will let you decide.

http://codereview.chromium.org/8771007/diff/2001/tools/testing/dart/test_suit...
tools/testing/dart/test_suite.dart:448: }
I see what you mean about the reporting being strange. How about cases such as:

CRASH, OK
PASS, OK
CRASH, FAIL
CRASH, FAIL, PASS

In particular I think we should add reporting of the last category of flaky
tests that either crash or fail (or even pass).

Powered by Google App Engine
This is Rietveld 408576698