Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Suggestion for package testing approach

Open gmsecrieru opened this issue 11 years ago • 3 comments

Now that we are starting to add tests, we need to make sure that we can:

  1. Test packages as standalone, single units.
  2. 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 screen shot 2015-10-08 at 12 34 41

gmsecrieru avatar Oct 08 '15 15:10 gmsecrieru

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 avatar Oct 21 '15 08:10 kakawait

@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! =)

gmsecrieru avatar Oct 21 '15 12:10 gmsecrieru