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 786 forks source link

Test coverage number too low when running test through interface instead of concert class #654

Closed jerrykwchan closed 8 years ago

jerrykwchan commented 8 years ago

Hi,

When run test through interface (I'm using typescript), the coverage number is too low. It drops from 92% to 5%. Is there any way to get the correct coverage number?

regards, Jerry

gotwarlost commented 8 years ago

I don't understand what you mean. Could you elaborate?

jerrykwchan commented 8 years ago

Sorry, I found out that it is my problem. I removed the interface and the test coverage number the same. I guess either I missed some source file in instrumental call or the test file is not included.