How To Turn Off Velocity Unit Testing In Meteor?
I'm using the mike:mocha package and I'm trying to figure out how to disable testing. There are times when I have to demo the app I'm working on in my local machine. For those situ
Solution 1:
After some googling I found that running
meteor --production run
takes care of this.
Note: As @cannotto90 noted below, running this command will minifiy the client code and code refresh will not be in effect. To get back to coding, you will need to stop meteor first
ctrl+c
and run meteor again using themeteor
command.
Solution 2:
Here's a cheap work-around trick from the spiritually perverse :
veloff.sh
#!/bin/bash#
meteor remove xolvio:cucumber
meteor run
velon.sh
#!/bin/bash#
meteor add xolvio:cucumber
meteor run
Works for me. In your case swap in mike:mocha instead of xolvio:cucumber, of course. I'm guessing it'll work the same.
Your tests directory will be ignored.
Solution 3:
I'm developing a mocha-esque alternative for testing Meteor app, that doesn't use Velocity and only runs tests under demand. It's only server-side currently. You might find it useful: https://github.com/taromero/latte.
Post a Comment for "How To Turn Off Velocity Unit Testing In Meteor?"