Closed bjchambers closed 3 years ago
I believe this issue is around docker command chaining, the following seems to work for me:
docker run --security-opt seccomp=unconfined -v "${PWD}:/volume:rw" \
xd009642/tarpaulin:develop-nightly \
/bin/bash -c "cargo build && cargo tarpaulin --out Xml"
See this small note in the docker docs.
Whoops! Indeed it is. Thanks!
Describe the bug
Trying to use docker to run tarpaulin and produce XML fails.
To Reproduce
Produces the error:
Error: "Failed to report coverage! Error: Failed to create run report"
.No additional information is logged about why it failed. It had even produced coverage information already.
If I specify
--output-dir=/volume
the error changes toError: "Failed to create or locate custom output directory: Some(\"/volume\")"
Expected behavior
The output file added to my local directory.