Repository navigation
Conversation
|
I think I would much prefer keeping the top-level tests structure as-is, so that the folder doesn't get too polluted with test apps. (polluted is such an incorrect word here, but I don't have anything better). But in the same vein as the Octane structure, I think it makes sense to have a "collection" of dummy apps, as I tried here: #8158
|
Yes, this is the disadvantage of this structure. On the other hand, this structure does not require any change to existing apps which may require a new RFC and implementing a migration plan.
This PR also allows to have a "collection" of dummy apps, but using a different structure. tests/
├── acceptance
├── dummy
│ ├── app
│ ├── config
│ └── public
├── dummy2
│ ├── app
│ ├── config
│ └── public
├── helpers
├── index.html
├── integration
├── test-helper.js
└── unit
|
by collection, I just meant in the same meaning as the octane layout's "collections" or "private collections" where they are grouped into a folder, such as
if what I'm doing requires an RFC, then I think this PR would also need an RFC. I feel like we're in a bit of a gray area. I mean, the plan is always to support the original dummy app. |
|
how about? |
|
@stefanpenner I started with the same API in mind. Then I realized that the implementation was more complex:
This API should not require major changes. My initial intention was to provide a Proof of Concept and API to start the discussion and validate or discard the proposal. |
|
I've always wanted a way to do this, along with moving the ember-cli-build.js to the dummy (so you can have more than one). Thanks for getting the discussion started! |
|
I like the approach of @mansona in his |
| let name = process.env.EMBER_CLI_DUMMY = process.env.EMBER_CLI_DUMMY || 'dummy'; | ||
| process.env.EMBER_ADDON_ENV = process.env.EMBER_ADDON_ENV || 'development'; | ||
|
|
||
| // `testExclude` only excludes the "running" dummy app (provided by the `name` value), |
There was a problem hiding this comment.
This needs to be reviewed.
|
I'm a little worried that this might conflict with plans to be able to build multiple dummy apps in parallel. I think @ef4 mentioned something like that? 🤔 We might want to let this go through the RFC process before accepting this as a new feature |
|
I think I'd want to be able to have different sets of acceptance tests per dummy app. |
|
My thoughts are: |
|
@kellyselden that is precisely why I think we need an RFC for this |
|
Strongly agreed. |
|
See also prior discussion in ember-cli/rfcs#119 |
|
Going to close this one for now if that's okay, based on the last comments and the fact that this PR is probably outdated at this time. |
tests/${dummyAppName}dummyA non default dummy app must change the default
modulePrefix:A needed additional change is that the
DefaultPackagerneeds to be informed that it is building a Dummy app a7848d6Related
https://github.com/mansona/ember-cli-multiple-dummy-apps
https://github.com/mansona/testing-mu
#8322
#8158
ember g component foo-bar --dummy) be considered?