Specify the mirror port for client integration tests with the environment variable: JASMINE_MIRROR_PORT (this is a typo. I will change it to JASMINE_CLIENT_MIRROR_PORT in the next release.
Specify the mirror port for client integration tests with the environment variable: JASMINE_SERVER_MIRROR_PORT
The client integration tests only run when you open your app in the browser. They run in a hidden iFrame. If you run the tests in CI mode (meteor --test) the tests will run automatically with PhantomJS.
Yes, I have three tabs open. *:8080 (works), *:8081 (“no app seems to be running” error), *:8082 (works).
Tried using the --test flag, but it doesn’t seem to help with client tests. It does, however, show the specifics of the server tests which is nice (via velocity:console-reporter).
Still get the errors ECONNREFUSED and Can't listen on port 8081. Perhaps another Meteor is running?.
I found a sample hack to do both client and servfer tests on cloud9.
So run all your server tests inside server-integration-mode and all your client test inside client-unit-mode. Of course, you have to install phontomjs with
@Sanjo I don’t know if this can affect the tests? I mean is there some situation that I must use the correct velocity test mode in order to get the correct result?