Make Velocity run unit tests from packages

Hi!

I’ve moved all business code of my application to local smart packages. How can I make Velocity run the Jasmine tests in the packages’ test folder? Currently only tests under the application’s /tests/jasmine folder are considered.

Christian

Taken from the Jasmine readme: https://github.com/Sanjo/meteor-jasmine#testing-a-package

VELOCITY_TEST_PACKAGES=1 meteor test-packages --driver-package velocity:html-reporter package-to-test

I believe if you leave off the package-to-test argument, it will run them all.

1 Like