Open levity opened 10 years ago
have you had any success with this? I'm suffering from the same issue.
Sorry, I haven't.
On Mon, Mar 23, 2015 at 7:04 AM, Miguel Coquet notifications@github.com wrote:
have you had any success with this? I'm suffering from the same issue.
— Reply to this email directly or view it on GitHub https://github.com/karma-runner/grunt-karma/issues/127#issuecomment-85011579 .
I'm using karma-bro to provide browserify support for karma, and it looks like there's a race condition between the preprocessing and the running of tests. It only happens with grunt-karma, not when I run karma directly.
When I change one of my test files to flip a test between failing and not failing, then save,
watch
picks up the change, but the test outcome is as if I hadn't made the change. When I make and save a second change, the outcome is as if I'd only made the first change. e.g.:I'm guessing the preprocessing is happening in the
karma:dev:start
thread, so there's a race condition. Any suggestions for how to work around this?My Karma config:
My Grunt config (excerpted):