Moved apps to /services/ & moved individual tests #9187
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
refs #9178
This moves the code that is related to managing the app lifecycle & sandbox into the /services/ folder, so that server/apps only contains internal apps.
It also moves the individual app tests to the /tests/ folder. This is because those tests were assumed to be unit tests, but not all of them were. The subscribers tests were functional route tests. By doing this, we reveal the true level of unit testing of the apps code:
Before:
![](https://camo.githubusercontent.com/58bf1f52f736e3b36d072b0ef409bc58d8bf6d806c16abecc3fc085d29c9a127/68747470733a2f2f7075752e73682f79394d54512e706e67)
After:
![](https://camo.githubusercontent.com/2246fd2b4ce81a56ee9204282c4a41fc6ba16fda0de2af5c3cf819c6d141b1f9/68747470733a2f2f7075752e73682f79394d5a622e706e67)
This makes it clear that the app lifecycle needs deeper unit testing & probably should feed into the discussion about moving one set of tests (either integration or functional).
Note: 2 timezone-related tests are failing on my local machine this morning, which I guess is DST-change related.