-
Notifications
You must be signed in to change notification settings - Fork 161
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 FastBoot to ember-try #68
Comments
I have no clue how to use FastBoot myself; is there some way to run headless tests in FastBoot? ( |
@tomdale - It isn't as simple as using |
If there's some way to automate testing of addons for FastBoot compatibility -- we can make it an EmberObserver score point if that helps. |
@kategengler The basic approach is:
|
I decided to try to test FastBoot with my own addon, ember-feature-flags.
And ... boom
Does this mean |
@kategengler You shouldn't need |
@tomdale Great, |
@kategengler You can simulate what an incompatible addon would look like by accessing |
@kategengler Figured this thread might be a good place to follow up on our conversation from Ember NYC. :) What do you need help with from me to move forward on adding FastBoot compatibility to Ember Observer? Based on what you said the other night, my thinking right now is that there could be three levels of compatibility, in increasing order of goodness:
|
@tomdale The only thing I need right now is time! While I still do want to add this to Ember Observer, I've reconsidered whether this also belongs in I imagine For the third level, how can an addon run automated tests "in FastBoot"? |
@kategengler Third level is still being designed and should definitely be punted on for right this second. At a high-level, I want to be able to express a set of acceptance tests that can apply in both environments. At first, that is probably things like:
Over time, it would be cool to run these tests in a browser with JavaScript disabled. Eventually we may get form processing in FastBoot as well, so you could then test things like filling out form fields. But I think that's a ways off. ;) |
@tomdale Gotcha. So, if its just the first level, I should be able to find time to get it at least into ember-try within the next week or so. |
@kategengler Perfect. Ping me if you run into any trouble. |
@tomdale Since |
@kategengler In my experience, loading the app is relatively quick. I'd set the timeout at… maybe 10 seconds? Do note however that the build process may take longer, especially if there's a lot of JavaScript or SCSS to compile. |
Went with a 30s default timeout. The failure case I tested with |
…-test Fixed missing request headers
Chunked responses
This fixes an error introduced by ember-fastboot#68.
Many addons don't load in FastBoot, often for reasons that are accidental and easy to fix. It would be awesome if
ember-try
could add a mode to test addons in FastBoot, so addon authors can detect and fix these issues./cc @kategengler
The text was updated successfully, but these errors were encountered: