Gulp angular unit testing directive templateUrl
问题 I read many post on internet and SO but couldn't find any solution that works I am trying to write unit test for a directive and want the html files to be served from template cache I am using Gulp as a build tool The gulp task for test looks like this gulp.task('test', function (done) { karma.start({ configFile:__dirname + '/' + config.test.karmaconf, singleRun: false }, done); }); and in karma.conf , I have defined browserify: { debug: true, transform: [['browserify-ng-html2js', { module: