-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add ember try:fastboot
#53
Conversation
- It installs ember-cli-fastboot, runs `ember fastboot`, then waits for the command to either exit or hit the timeout (Default 30s). Hitting the timeout means the command has succeeded in starting up a server, so this timeout may need to be adjusted longer for apps or addons with long build times.
Much of this PR is great! I'd rather see the ability to allow the scenario to define its own default command though. This is now possible (since
Making these changes makes all of our commands much better ( Also, to give out of the box fastboot testing support to ember-cli addons, we would add the above What do you think? |
I agree re: being able to add a custom command, and that was in my first approach, but I want more time to work on that. I want to support multiple commands, and commands that aren't Since I was asked for |
@kategengler One thing I've seen us do in automated tests is examine output to (See https://github.com/tomdale/ember-cli-addon-tests/blob/master/lib/commands/start-server.js#L55-L66 for an example implementation.) @rwjblue's plan sounds awesome but I'm not yet familiar enough with ember-try's internals to have a strong opinion. This seems fine as an MVP to me. I don't think the refactor Robert suggested affects the "public API" ( |
@tomdale I think @rwjblue's suggestion was to have a general way of running other commands, and so in that scenario we wouldn't have an I thought about examining Another thought I had is that maybe the |
@kategengler The idea for |
@kategengler What's the status on this? 😊 |
@tomdale Still want to add |
@kategengler Cut v0.2.1 of ember-cli-addon-tests that should hopefully resolve the issue. |
@kategengler Were you able to verify if that fixed the issue? |
I haven't been able to get back to it yet, unfortunately. On Mon, Mar 21, 2016 at 11:54 AM, Tom Dale notifications@github.com wrote:
|
@kategengler Gentle nudge. ;) |
Just stumbled upon this... I have put this thing together recently: https://github.com/kaliber5/ember-fastboot-addon-tests It lets you test your addon in Fastboot. Not only spins up the server, but also lets you write custom tests that make a request and run custom assertions against the response. Also provides a I guess this could be integrated with an ember-try scenario using the approach suggested by @rwjblue. If there is anything else that could help making these play together nicely, I am more than willing to do my part here! :) |
closing due to inactivity and plenty of conflicts |
It installs ember-cli-fastboot, runs
ember fastboot
, then waits for the command to either exit or hit the timeout (Default 30s). Hitting the timeout means the command has succeeded in starting up a server, so this timeout may need to be adjusted longer for apps or addons with long build times.Potential future improvements: We could separately run
ember fastboot:build
andember fastboot
to avoid more possible false success scenarios (when the timeout occurs before the server has started up).