Closed callumacrae closed 9 years ago
I am experiencing the same issue. It looks like Karma ignores the files options completely, when used from gulp-karma.
I've got the same issue: files specified in the configuration are totally ignored. See in the main plugin file.
I'm still searching for a workaround.
If I recall correctly, you can add it to the files specified in gulp.src()
and that should work around the issue. Can't really remember though, and I'm not using it any more because the author seems to have abandoned it.
@callumacrae, gulp-karma
hasn't been abandoned, but it definitely should be killed. Why? It's simply not suited to be a gulp plugin due to the problems mentioned here and over at https://github.com/lazd/gulp-karma/issues/9. Karma has it's own notion of globs that include more that just a path pattern to match, and that's just not compatible with gulp.src
.
However, @feugy and @vitalybe, all hope is not lost. For a potentially viable solution, please check out https://github.com/lazd/gulp-karma/issues/21#issuecomment-40786028 . If we can get a few things patched up in Karma, I think this approach will be the best way to use Karma with gulp.
gulp-karma
is deprecated (#43). Please use Karma directly: https://github.com/karma-runner/gulp-karma
My karma.conf.js contains this:
It works fine when I run it directly through karma, but when I run it through Gulp, I'm getting the following error:
Here is my test file:
Here is my gulp task:
To me, it looks like should.js isn't being included at all. I don't know how to debug it, though.