tarpaulin: Tarpaulin fails to do coverage test on proc-macro repos

I am not sure what to look or how to debug the issue but the error message is

ERROR: failed to read cargo metadata: EOF while parsing a value at line 1 column 0

It only appears in proc-macro repos.

Travis CI log for failing job with tarpaulin: https://travis-ci.org/Rair-Project/rair-core/jobs/638586153 Travis CI log for same job passing tests without tarpaulin https://travis-ci.org/Rair-Project/rair-core/builds/638586152

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 48 (39 by maintainers)

Most upvoted comments

There’s a PR awaiting to be landed 😉 But anyway, I don’t understand your obsession with coverage. It is telling for clap thanks to very extensive testing but not so useful for the derive where number of possible inputs is not so large.

I’ll add something so if you give --debug it will send --verbose to cargo, don’t want to fill everyones screens with messages. If you’re running on mac you might be experiencing docker issues because mac runs docker in a linux VM and the VM limitations are quite low. Most Mac docker issues I’ve seen have boiled down to that

Ah so everything in the crate is a proc macro? I’ll work on this my end but you might want to look at https://crates.io/crates/runtime-macros it turns proc macros evaluated at compile time into runtime expressions which means tarpaulin actually has something to cover. Though that would require tarpaulin getting past the Cargo.toml itself…