alfert / coverex

Coverage Reports for Elixir
Other
101 stars 26 forks source link

Error messages "mod_entry is nil and cover = .." #18

Closed cjimison closed 8 years ago

cjimison commented 8 years ago

We use the library amnesia which does some macro tricks to make using mnesia easier. However when I run coverex on it get a errors about mod_entry is nil. It would be nice to suppress these errors because it looks like the test is failing and the are not. Also the coverage reports are generating as well.

Example error:

15:31:55.002 [error] mod_entry is nil and cover = [{{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 3}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 1}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 1}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 2}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 0}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 1}, {{Database.Builds.App, 15}, 1}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 1}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, 15}, 0}, {{Database.Builds.App, ...}, 0}, {{...}, ...}, {...}, ...]

15:31:55.019 [error] mod_entry is nil and cover = [{{Database.Builds, 0}, 0}, {{Database.Builds, 0}, 0}, {{Database.Builds, 0}, 1}, {{Database.Builds, 0}, 0}, {{Database.Builds, 0}, 0}, {{Database.Builds, 0}, 0}, {{Database.Builds, 0}, 0}, {{Database.Builds, 1}, 0}, {{Database.Builds, 1}, 0}, {{Database.Builds, 6}, 1}, {{Database.Builds, 6}, 0}, {{Database.Builds, 6}, 1}, {{Database.Builds, 6}, 2}, {{Database.Builds, 6}, 0}, {{Database.Builds, 6}, 0}, {{Database.Builds, 6}, 0}, {{Database.Builds, 6}, 0}, {{Database.Builds, 6}, 0}, {{Database.Builds, 6}, 2}]

cjimison commented 8 years ago

Link to amnesia https://github.com/meh/amnesia

alfert commented 8 years ago

Yeah, this is really ugly. I will change this.

cjimison commented 8 years ago

Just pulled the new changes and it looks great. Thanks!

alfert commented 8 years ago

coverex 1.4.6 is out.