Skip to content

Support hybrid (browser + custom Dart server) tests #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kevmoo opened this issue Aug 25, 2015 · 7 comments
Closed

Support hybrid (browser + custom Dart server) tests #330

kevmoo opened this issue Aug 25, 2015 · 7 comments
Labels
customer-bolt2 type-enhancement A request for a change that isn't a bug

Comments

@kevmoo
Copy link
Member

kevmoo commented Aug 25, 2015

Sometimes you'd like to hit custom server code (written in Dart) from a browser test.

See pkg/http as an example.

@kevmoo kevmoo added the type-enhancement A request for a change that isn't a bug label Aug 25, 2015
@nex3
Copy link
Member

nex3 commented Aug 25, 2015

The example Kevin is referring to is this one, where the test relies on the old test.dart behavior of automatically starting up an echo server.

@ErikGrimes
Copy link

More generally, I'd like support for setup that occurs outside the browser. This way I could spin up a set of Docker containers, a Dart server, or whatever else I need to setup for the browser test.

@kevmoo
Copy link
Member Author

kevmoo commented Oct 5, 2015

@ErikGrimes oooo – I like that scenario. I hit it often myself.

Keep in mind "custom server code" is anything you can run with dart:io, which includes starting/stopping processes

@zoechi
Copy link

zoechi commented Oct 5, 2015

I use grinder to run custom servers and https://pub.dartlang.org/packages/bwu_docker to run Docker containers before running pub run test

@ErikGrimes
Copy link

@kevmoo Ahh, for some reason my brain translated custom server code to Dart only scripts! Are you open to PR's for this? A relatively straightforward approach would be to mimic the Process api.

@nex3
Copy link
Member

nex3 commented Oct 6, 2015

I don't think we're going to be able to design a satisfactory API here without some sort of plugin infrastructure being exposed. I want to sit on it for now.

@nex3
Copy link
Member

nex3 commented Sep 30, 2016

Closing this as a duplicate of #109.

@nex3 nex3 closed this as completed Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-bolt2 type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants