You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Module Unification] Addon tests are hoisted into the host application #17224
*-test.js files from an addon are hoisted into the consuming host application, just like regular files, e.g. component.js. This means that running ember test in the host application will also attempt to run the addon's tests.
I don't think that this is intended / desired behavior. It's also causing errors, if the addon tests import dev dependencies, which are not available in the host application.
Sorry for being unclear here. I was referring to the the wrongfully included tests failing or failing to load, because they are importing dev dependencies (of the addon they belong to), which are not available in the host application.
Activity
NullVoxPopuli commentedon Nov 26, 2018
with a recent build of https://emberclear.io,
I'm witnessing this behavior as well -- not any errors, but just tests being included in the bundle.
Here is my "current" bundle: https://nullvoxpopuli.gitlab.io/emberclear/master/bundle.html


buschtoens commentedon Nov 26, 2018
Sorry for being unclear here. I was referring to the the wrongfully included tests failing or failing to load, because they are importing dev dependencies (of the addon they belong to), which are not available in the host application.
pixelhandler commentedon Nov 30, 2018
@buschtoens would this be an issue for https://github.com/ember-cli/ember-cli/issues ? seems that the expected behavior is when I visit http://localhost:4200/tests that only my application tests should be run, and no (addon/dependency) tests should be included. And running
ember testorember test -sshould also only execute application tests?But, it sounds like the actual behavior you see is that in all of the above scenarios addon (dependency) tests are included and executed?
Can you provide an example repo?
NullVoxPopuli commentedon Nov 30, 2018
For me, it's the application tests that are being included in the production repo.
Here is my repo:
https://github.com/NullVoxPopuli/emberclear/
buschtoens commentedon Nov 30, 2018
I was not sure at what level the filtering happens. But it'd make sense to filter addon tests at the build level, yes.
ppcano commentedon Dec 21, 2018
I will look at this issue soon and try to implement a fix.
I think so.
ppcano commentedon Dec 21, 2018
It should be fixed by ember-cli/ember-cli#8314
@buschtoens I am not sure if 👆 fixes the addon issue.
ppcano commentedon Dec 23, 2018
ember-cli/ember-cli#8314 has been merged.
@buschtoens please, would you mind to test again the addon issue and inform if the problem has been fixed.
buschtoens commentedon Dec 23, 2018
@ppcano Thanks! I'll have a look soon. Currently busy with 🎅 stuff. 😉
NullVoxPopuli commentedon Jan 8, 2019
@ppcano @buschtoens my bundle: https://emberclear.io/bundle.html

in my app bundle it looks like tests that I generically named
-acceptance-test.tsare included.so, maybe the filter pattern needs updating?
locks commentedon May 30, 2019
Closing this issue as we are rethinking the MU approach.
NullVoxPopuli commentedon May 30, 2019
According to: https://emberclear.io/bundle.html
I think this was actually resolved and forgetten haha 🎉