karma-runner / grunt-karma

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

grunt-karma and watch nospawn dont play along very well #81

Open unbalanced opened 10 years ago

unbalanced commented 10 years ago

Is it possible to run karma using watch (grunt-contrib-watch) when the watch task is set with "nospawn": true

watch:{
            dev: {
                options: {
                    interrupt: true,
                    nospawn: true
                },
                files: [............],
                tasks:['concat:dev', 'karma:dev:run']
            }
}
karma: {
            dev: {
                configFile: 'config.js',
                browsers: ['PhantomJS'],
                background: true,
                singleRun: false
            }
}

It currently only works when i dont use the nospawn configuration to watch. i would like to use nospawn since the watcher runs a lot faster that way on my env.

Thanks, your help is highly appreciated :)