Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Can you specify packages for ember fastboot:serve? #14

Open
kimroen opened this issue Sep 13, 2017 · 1 comment
Open

Can you specify packages for ember fastboot:serve? #14

kimroen opened this issue Sep 13, 2017 · 1 comment

Comments

@kimroen
Copy link

kimroen commented Sep 13, 2017

I was trying to debug a test that was failing by running ember fastboot:serve in debug mode, and after getting a different error I realized that the addon I was trying to test wasn't installed in this mode.

It makes sense that it doesn't install them considering the packages to install is defined in setupTest in each test, but as far as I can tell there's no way to make this work at the moment.

I've read through some of the code in this package, and based on that I'm assuming this doesn't work. The options from the command line seem to be passed in as they are. Please let me know if I'm missing something and I can actually do this right now.


Some different ideas for how the packages to install could be specified:

  1. default options per app in a file in that app's folder (would the tests use this too?)
  2. always pick up the options from setupTest in index-test when running serve
  3. add options to ember fastboot:serve to specify packages (a string with an object in it?)
  4. add an option to ember fastboot:serve to specify which test file to use the options from

Thanks!

@simonihmig
Copy link
Member

First of all, sorry for the late response! You are right, this is unfortunately not supported so far.

I would consider 1. and 3. as possible solutions.

Even now there can be some inconsistency regarding additional packages of a test app, because tests that use the same app name again will reuse the already setup app, regardless of the packages that might have been used as options for the first call to setupTest. So 1. could provide some consistency here for tests (for eacvh app there can be only one set of additional packages to install), and allow fastboot:serve to acknowledge these. However unsure how that could look like in detail?

Will have to think about that, do you have some idea?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants