karma-runner / grunt-karma

Grunt plugin for Karma.
MIT License
468 stars 116 forks source link

runnerPort does not seem to take effect #100

Closed fatso83 closed 10 years ago

fatso83 commented 10 years ago

When setting the runnerPort in the config, it does not seem to be picked up by grunt-karma. For instance, with a setup like

        karma : {
            options : {
                configFile : 'test/karma.conf.js',
                autoWatch: false
            },

            singleRun : {
                runnerPort: 9999,
                singleRun : true,
                browsers  : [
                    'Chrome',
                    'PhantomJS'
                ]
            }

I can open two consoles and start running tests in both with grunt karma:singleRun. In the second console I will get "WARN [karma]: Port 9876 in use". Same with different configs, and I cannot see any difference from what is being done in the README.

HowlingEverett commented 10 years ago

I believe runnerPort is deprecated. Try using port: 9999 instead.

fatso83 commented 10 years ago

Thanks!