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

Output Location Seems Inconsistent #1166

Open
baxterjo opened this issue Jan 9, 2024 · 0 comments
Open

Output Location Seems Inconsistent #1166

baxterjo opened this issue Jan 9, 2024 · 0 comments

Comments

@baxterjo
Copy link

baxterjo commented Jan 9, 2024

I'm new to this tool so this may have been answered before, but it seems like the output for the coverage report is nesting when it should overwrite. If I start from a point of no target/ directory an run these commands:

        RUST_LOG=DEBUG CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='./target/coverage_temp/cargo-test-%p-%m.profraw' cargo test

	grcov ./target/coverage_temp \
	--binary-path ./target/debug/deps/ \
	-s . \
	-t html \
	--branch \
	--keep-only "*${app_name}*" \
	--ignore "*target/debug/build*" \
	-o ./target/coverage/html/

The first time it generates the html directory in the expected location:

./target/coverage/
└── html
    ├── badges
    └── src
        └── files

Then when I run the exact two commands for a second time when the html dir already exists:

./target/coverage/
└── html
    ├── badges
    ├── html
    │   ├── badges
    │   └── src
    │       └── files
    └── src
        └── files

Is this expected?

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

1 participant