Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nightly: cargo cov creates empty report #18

Closed
shahn opened this issue Jan 5, 2018 · 8 comments
Closed

nightly: cargo cov creates empty report #18

shahn opened this issue Jan 5, 2018 · 8 comments

Comments

@shahn
Copy link

shahn commented Jan 5, 2018

Pretty much as the title says, on nightly cargo cov doesn't create any gcda or gcno files and the browser shows an empty html page

@king6cong
Copy link

The same here

@mathstuf
Copy link

mathstuf commented Mar 9, 2018

I'm also seeing this with 1.24.0 final.

@lo48576
Copy link

lo48576 commented Mar 31, 2018

Same for me.

$ rustc +nightly --version
rustc 1.26.0-nightly (80785a547 2018-03-30)
$ cargo +nightly --version
cargo 1.26.0-nightly (d63299b6e 2018-03-28)
$

When running cargo +nightly cov test normally, it generates no *.gdca files.
I tried

RUSTFLAGS='-Z profile -C codegen-units=1' CARGO_CFG_REGEX_DISABLE_AUTO_OPTIMIZATIONS=1 cargo +nightly cov test --lib

and it generates *.gdca files, but it emits many

profiling: (path).gdca: cannot merge previous GCDA file: corrupt arc tag (0xfoobar)

error messages for my crate and exit unsuccessfully...

@lo48576
Copy link

lo48576 commented Mar 31, 2018

RUSTFLAGS='-Z profile -C codegen-units=1' CARGO_CFG_REGEX_DISABLE_AUTO_OPTIMIZATIONS=1 cargo +nightly cov build --lib

This successfully exited, and I ran cargo +nightly cov report --open, then it generates html report with no entries... 🙄

@mssun
Copy link

mssun commented Apr 12, 2018

Any updates?

@themasch
Copy link

themasch commented May 4, 2018

I'm also having this issue on 1.25.0. cargo cov test runs, executes all tests and creates no files. Report is empty, too.

But since others seem to have this issue on nightly only, maybe I am doing something wrong?

@kaiba696
Copy link

^ +1

@kennytm
Copy link
Owner

kennytm commented Jun 18, 2018

Fixed by 6ecd86a and 05d1c1e.

@kennytm kennytm closed this as completed Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants