jimivdw / grunt-mutation-testing

JavaScript Mutation Testing as grunt plugin. Tests your tests by mutating the code.
MIT License
51 stars 11 forks source link

Tests fail without mutations for file #62

Closed blabno closed 8 years ago

blabno commented 8 years ago

When I run tests normally, they all pass. When I comment out some tests then mutation works fine, but when I uncomment some tests then I get

(16:32:03.783) INFO [KarmaServerManager]: Karma server started after 3100ms and is listening on port 12111
[2016-05-27 16:32:03.894] [DEBUG] config - Loading config /home/project/test/karma.conf.js
(16:32:05.896) WARN [mutation-testing-karma]: Warning! Infinite loop detected. This may put a strain on your CPU.
(16:32:05.896) ERROR [mutation-testing-karma]: Fatal: Unfortunately the mutation test cannot recover from this error and will shut down
(16:32:05.898) WARN [mutation-testing]: Tests fail without mutations for file: /tmp/mutation-testing116427-5613-p3fcyj/activeArtifact.controller.js
(16:32:05.899) WARN [mutation-testing]: This failure may be due to a misconfiguration of either `code` or `specs`. Did you include your external libraries?
simondel commented 8 years ago

Hey! :)

  1. Do you use Mocha or Jasmine?
  2. Is your project open source?
blabno commented 8 years ago
  1. Karma + mocha + chai
  2. No
blabno commented 8 years ago

Is there any chance to see failing test report?

simondel commented 8 years ago

I unfortunately have no idea. I was hoping you would have an open source project with Jasmine so I could run it with Stryker, which unfortunately does not yet support Mocha (we're working on it though).

blabno commented 8 years ago

Well, best luck on mocha support. Really looking forward to being able to verify mocha coverage.

blabno commented 8 years ago

hm. I've just spotted that if I modify waitForRunnerTime and set it to some high value, then everything works well.

So I figure it would be good to document that.