I found an answer for those who found this, and also wondered how to prevent a Karma popup.
I use the sanjo: jasmine test suite that Karma uses for client integration tests. You can set the default browser in PhantomJS by simply adding this to your environment when starting the meteor:
JASMINE_BROWSER=PhantomJS
Or, if you just want to disable integration tests with clients, just add this:
JASMINE_CLIENT_UNIT=0
So, for example, you can run your application, for example JASMINE_BROWSER=PhantomJS meteor , and you will no longer receive a popup. What I did was created by meteor.sh in my application root folder, which I use to run with these environment variables:
This is just for convenience, so I wonβt need to remember a variable to do this. This should work on any * nix based OS. You can also make an alias if you wish. It would look like this:
alias meteor=JASMINE_BROWSER=PhantomJS meteor
I can sit out a bit in the syntax, but I think it should work.
To use PhantomJS, you need to install it, so run it in the terminal:
npm install -g phantomjs
Or if you are working on a Mac (you will need a brew ):
brew install phantomjs
Hope this helps someone in the future.
source share