Choose ports dynamically

ran grunt test.
how do I install/test in firefox?