slushjs / slush-angular

A slush generator for AngularJS using the Google Angular App Structure Recommendations
129 stars 32 forks source link

karma not processing coffeescript tests #35

Open DisruptiveMind opened 9 years ago

DisruptiveMind commented 9 years ago

When opting for CoffeeScript, gulp test will run only JS files in the tmp and app folders.

I had to add modify in gulpfile.js

.queue(gulp.src(['./src/app/**/*_test.js', './.tmp/src/app/**/*_test.js']))

.queue(gulp.src(['./src/app/**/*_test.coffee']))

I remove the tmp folder checks to run the tests only on the coffee files.

I had to also modify karma.conf.js and add the plugin in manually following these steps: karma-coffee-preprocessor

The tests do run the coffeescript files now, is there a step I am missing?

Edit: This only works after generating the files into the tmp folders otherwise the tests won't load all modules.