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

Issue 11103015: Added the ability for testrunner to start the HTTP server with a random port and communicate that p… (Closed)

Created:
8 years, 2 months ago by gram
Modified:
8 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Added the ability for testrunner to start the HTTP server with a random port and communicate that port to the tests via a 'testState' map in unittest. Committed: https://code.google.com/p/dart/source/detail?r=13507

Patch Set 1 #

Patch Set 2 : #

Total comments: 19

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -48 lines) Patch
M pkg/unittest/unittest.dart View 1 chunk +9 lines, -0 lines 0 comments Download
M utils/testrunner/http_server.dart View 1 2 1 chunk +8 lines, -2 lines 0 comments Download
M utils/testrunner/options.dart View 1 chunk +1 line, -2 lines 0 comments Download
M utils/testrunner/pipeline_utils.dart View 1 2 4 chunks +35 lines, -20 lines 0 comments Download
A utils/testrunner/pubspec.yaml View 1 chunk +4 lines, -0 lines 0 comments Download
M utils/testrunner/run_pipeline.dart View 1 2 6 chunks +73 lines, -24 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
gram
You will be most amused by the fact that I now always return the Future ...
8 years, 2 months ago (2012-10-10 21:52:29 UTC) #1
Siggi Cherem (dart-lang)
https://codereview.chromium.org/11103015/diff/2001/utils/testrunner/pipeline_utils.dart File utils/testrunner/pipeline_utils.dart (right): https://codereview.chromium.org/11103015/diff/2001/utils/testrunner/pipeline_utils.dart#newcode54 utils/testrunner/pipeline_utils.dart:54: * when the process terminates; if [procId] is instead ...
8 years, 2 months ago (2012-10-10 22:07:28 UTC) #2
gram
PTAL https://codereview.chromium.org/11103015/diff/2001/utils/testrunner/pipeline_utils.dart File utils/testrunner/pipeline_utils.dart (right): https://codereview.chromium.org/11103015/diff/2001/utils/testrunner/pipeline_utils.dart#newcode54 utils/testrunner/pipeline_utils.dart:54: * when the process terminates; if [procId] is ...
8 years, 2 months ago (2012-10-10 23:36:04 UTC) #3
Siggi Cherem (dart-lang)
8 years, 2 months ago (2012-10-10 23:39:51 UTC) #4
lgtm

https://codereview.chromium.org/11103015/diff/2001/utils/testrunner/pubspec.yaml
File utils/testrunner/pubspec.yaml (right):

https://codereview.chromium.org/11103015/diff/2001/utils/testrunner/pubspec.y...
utils/testrunner/pubspec.yaml:1: name: testrunner
On 2012/10/10 23:36:04, gram wrote:
> On 2012/10/10 22:07:28, sigmund wrote:
> > yay! awesome!
> > 
> > There are a few other fields you should have so that it shows really nicely
> when
> > you upload it to pub:
> > 
> > author: "Dart Team <mailto:misc@dartlang.org>"
> > homepage: url-to-either where the code or the documentation is
> > description: A single sentence introducing what this is.
> > version: 0.0.1
> 
> Done, apart from homepage, as I don't know yet what that will be.
> 

for some reason the changes to this file didn't get uploaded :(

https://codereview.chromium.org/11103015/diff/2001/utils/testrunner/pubspec.y...
utils/testrunner/pubspec.yaml:3: args: { sdk: args }
On 2012/10/10 23:36:04, gram wrote:
> On 2012/10/10 22:07:28, sigmund wrote:
> > probably also add
> >   unittest: { sdk: unittest }
> > ?
> 
> Done that - and later this will mean that we can set the --unittest argument
> default sensibly.

you can probably just use 'package:unittest/unittest.dart' at that point.

Powered by Google App Engine
This is Rietveld 408576698