문제

When I run iced nodeunit test ...

$ nodeunit path/to/file/file_name.iced

... it's ok.

When I run a lot of coffee script tests ...

 grunt.initConfig({
   nodeunit: {
     coffee: ['path/to/coffee/nodeunit/tests/**/*_test.coffee']
   }
 });

 $ grunt nodeunit:coffee

... it's ok. But when I try to run set of iced nodeunit tests with grunt nodeunit ...

grunt.initConfig({
  nodeunit: {
    iced: ['path/to/iced/nodeunit/tests/**/*_test.iced']
  }
});

... got errors: Fatal error: Unexpected string. Seemingly gruntjs don't understand iced coffeescript.

So how to run a lot of iced nodeunit tests? May be without grunt-contrib-nodeunit, but how?

도움이 되었습니까?

해결책

grunt-contrib-nodeunit DOES support iced coffee (see this issue)

your test-code does not seem to be valid iced-coffee!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top