ember-cli-addon-tests icon indicating copy to clipboard operation
ember-cli-addon-tests copied to clipboard

tell people to first test the dummy app, before going down this path

Open stefanpenner opened this issue 8 years ago • 4 comments

cc @kellyselden / @rwjblue can you provide some use-cases where this add-on is required, and testing the existing dummy app does not work?

stefanpenner avatar May 25 '17 20:05 stefanpenner

@stefanpenner did you notice the issue I created for documenting/collecting use cases? See #104

simonihmig avatar May 25 '17 20:05 simonihmig

IMO, the only really useful area this addon serves is testing build code which is not appropriately tested through normal unit tests. I view the use of this addon as an "acceptance" testing of sorts for add-ons that need to verify that when dropped into a real application the build output is correct.

This is what we use it for in ember-engines. Thus, if you need to test build behavior for your addon when used as a nested addon or used multiple times in an application or so on, then this helps facilitate that.

trentmwillis avatar May 26 '17 00:05 trentmwillis

IMO, the only really useful area this addon serves is testing build code which is not appropriately tested through normal unit tests.

It sounds like we should provide helpers (by default) that test the dummy app instead?

stefanpenner avatar May 26 '17 05:05 stefanpenner

@stefanpenner I just discovered another use case.

  • Your addon is failing in the wild because you accidentally installed a required dependency to dev deps instead of deps. There is no way (that I know of) to prevent this via normal testing because both the addon and dummy app share the same package.json.

kellyselden avatar Jul 14 '17 04:07 kellyselden