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

Issue 10627008: Added the ability to filter which tests are run by name, using a --filter (Closed)

Created:
8 years, 6 months ago by gram
Modified:
8 years, 6 months ago
Reviewers:
Bob Nystrom, eub, ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Added the ability to filter which tests are run by name, using a --filter argument passed to test.dart. Committed: https://code.google.com/p/dart/source/detail?r=9006

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -3 lines) Patch
M lib/unittest/config.dart View 1 chunk +4 lines, -1 line 0 comments Download
M lib/unittest/unittest.dart View 1 2 3 chunks +53 lines, -0 lines 0 comments Download
M tools/testing/dart/browser_test.dart View 2 chunks +2 lines, -1 line 0 comments Download
M tools/testing/dart/test_options.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 3 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
gram
PTAL. Tested with: compiler=none runtime=vm compiler=none runtime=drt compiler=dart2js runtime=drt
8 years, 6 months ago (2012-06-21 20:31:55 UTC) #1
eub
Fair bit of plumbing to add a flag, eh. Thanks, Graham. https://chromiumcodereview.appspot.com/10627008/diff/1006/lib/unittest/config.dart File lib/unittest/config.dart (right): ...
8 years, 6 months ago (2012-06-21 20:58:45 UTC) #2
gram
PTAL https://chromiumcodereview.appspot.com/10627008/diff/1006/lib/unittest/config.dart File lib/unittest/config.dart (right): https://chromiumcodereview.appspot.com/10627008/diff/1006/lib/unittest/config.dart#newcode64 lib/unittest/config.dart:64: // bug in your unit tests, unless you ...
8 years, 6 months ago (2012-06-21 21:18:03 UTC) #3
eub
LGTM. Thanks for the feature!
8 years, 6 months ago (2012-06-21 22:02:21 UTC) #4
ahe
8 years, 6 months ago (2012-06-22 09:12:55 UTC) #5
I'm going to revert this.

Next time you make changes to shared test infrastructure, please make sure it
works across the board. Also, make sure you ask for review from the original
authors. None of the people who reviewed this change has been involved in
maintaining or designing our test infrastructure. I think it should be obvious
that you need to get review from people who are familiar with the code you're
changing.

$ tools/test.py -mrelease -cdart2js -rd8 --filter=contains lib/unittest
Test configuration: dart2js_d8_release_ia32
[00:00 |  --% | +    0 | -    0]
FAILED: dart2js-d8 release_ia32 lib/unittest/matchers_test
Expected: pass 
Actual: fail

stdout:
Usage: dart2js [options] dartfile

Compiles Dart to JavaScript.

Common options:
  -o<file> Generate the output into <file>.
  -c       Insert runtime type checks and enable assertions (checked mode).
  -h       Display this message (add -v for information about all options).

Error: Unknown option "--filter="contains"".

stderr:
test.dart: Compilation failed (step 1 of 2), exit code 1

...

Powered by Google App Engine
This is Rietveld 408576698