reactioncommerce / reaction-cli

A command line tool for working with Reaction Commerce.
33 stars 20 forks source link

Add unittest command #1

Closed brent-hoover closed 8 years ago

brent-hoover commented 8 years ago

Hopefully we can start adding some unit tests too

jshimko commented 8 years ago

I ended up doing a variation of this PR with a subcommand.

$ reaction test

# runs this...
 SERVER_TEST_REPORTER="dot" meteor test --once --full-app --headless --driver-package dispatch:mocha

$ reaction test unit

# runs this...
 SERVER_TEST_REPORTER="dot" meteor test --once --headless --driver-package dispatch:mocha

Since the code for both of those commands was almost identical, I figured it made sense to just parse the subcommand in one place and change the one arg that's different (--full-app) in the final command. Should also be easy to extend this as needed in the future.

Thanks for the idea!