Suggestion for package testing approach
Now that we are starting to add tests, we need to make sure that we can:
- Test packages as standalone, single units.
- Test the application as a whole.
Package-specific tests should be placed within packages/package-name/tests and should follow velocity+jasmine conventions.
Example of package testing (Velocity's Continuous Integration mode)
VELOCITY_TEST_PACKAGES=1 meteor test-packages rocketchat:lib --driver-package velocity:console-reporter --velocity

Recommended sources:
Getting started with Velocity Getting started with Jasmine Package Testing Jasmine Testing Modes Examples and Tutorials
Good point last day I pushed #1160 and when I started the PR I was thinking to used package testing approach. But I saw that is not used on RocketChat, I rollback to application testing approach.
May be a good candidate for package testing approach?
@kakawait I have some work related to this on standalone-package-testing branch. I was trying to set up our CI build tests for both packages and app, but I could only make it work for packages -- see #1045.
If you take a look at the latest build info from this PR, you will see the package tests running and passing, but when running velocity test-app --ci it breaks.
Feel free to jump in so we can put this to work! =)