HUB
Sign inSign up

elmtai/docker-rust-kcov

By elmtai

•Updated about 9 years ago

Docker image for Rust code coverage through kcov

Image
0

1.8K

elmtai/docker-rust-kcov repository overview

⁠Docker Image for Rust Code Coverage (kcov)

This repository contains a Dockerfile meant for measuring Rust code coverage using kcov⁠ and cargo-kcov⁠.

To run the code coverage:

docker run -it --rm --security-opt seccomp=unconfined --volume "$(PWD):/volume" elmtai/docker-rust-kcov

NOTE: cargo-kcov does not support cargo workspaces. Visit each crate of a workspace individually to run. You can use the --workdir argument to change the working directory inside the container. For example, if a crate from a workspace is located in the $(PWD)/lib directory:

docker run -it --rm --security-opt seccomp=unconfined --volume "$(PWD):/volume" --workdir /volume/lib elmtai/docker-rust-kcov

⁠License

This work is distributed under the terms of the Apache License (Version 2.0).

See LICENSE⁠ for details.

Tag summary
Recent tags
Content type
Image
Digest
Size
434.3 MB
Last updated
about 9 years ago
docker pull elmtai/docker-rust-kcov:latest