gotwarlost / istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k stars 787 forks source link

Error: Suite `title` should be a "string" but "function" was given instead. #764

Open aliaburas80 opened 7 years ago

aliaburas80 commented 7 years ago

Hi,

I using 'istanbul' to create coverage for 'mocha' unit testing, the unit testing is successes each time before adding istanbul but after adding it mocha test failed each time

  1) skip
  2) only

  2 failing

  1)  skip:
     Error: Suite `title` should be a "string" but "function" was given instead.

  2)  only:
     Error: Suite `title` should be a "string" but "function" was given instead.

and I don't use skip and only in my test! I tried to downgrade mocha as some one suggest but this don't solve this issue I currently usingmocha 3.2.0

futurfrukt commented 7 years ago

take a look https://github.com/Polymer/web-component-tester/issues/532