local code coverage

This commit is contained in:
t1m0t committed 2022-02-06 17:51:04 +01:00
1 parent 92ec0a448f
commit 5ba2c43274
6 files changed
+38 -18

No files matched your search

+10 -1
View File
@@ -12,9 +12,18 @@ function run_script {
rsync -a --progress ../ tmp --exclude target --exclude docker
# build base image
docker build -f Dockerfile_pre_test -t dioxus-base-test-image .
docker build -f Dockerfile_base_test_image -t dioxus-base-test-image .
docker build -f Dockerfile_pre_test -t dioxus-pre-test .
# run test
docker build -f Dockerfile_test -t dioxus-test-image .
# code coverage
docker build -f Dockerfile_code_coverage -t dioxus-code-coverage .
# exec test coverage
cd .. && \
echo "rustup default nightly && cargo +nightly tarpaulin --verbose --all-features --tests --workspace --timeout 120 --out Html" | docker run -i --rm --security-opt seccomp=unconfined -v "/home/elios/project/prs/dioxus/:/run_test" dioxus-code-coverage
firefox tarpaulin-report.html
# clean up
rm -rf tmp