Sign inSign up

abbychau/docker-rust-kcov

By abbychau

•Updated over 7 years ago

kcov:v33 + rust:latest + cargo-kcov

Image
0

263

abbychau/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" abbychau/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 abbychau/docker-rust-kcov

⁠License

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

See LICENSE⁠ for details.

Tag summary

Content type

Image

Digest

Size

532.6 MB

Last updated

over 7 years ago

docker pull abbychau/docker-rust-kcov