Skip to content

Commit

Permalink
adapt tarpaulin to workspace split
Browse files Browse the repository at this point in the history
  • Loading branch information
plebhash committed Jan 3, 2024
1 parent 3bf0261 commit 42af194
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 11 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ jobs:

- name: Generate code coverage
run: |
cargo +nightly version; cargo +nightly tarpaulin --verbose
./tarpaulin.sh
- name: Archive Tarpaulin code coverage results
uses: actions/upload-artifact@v3
with:
name: tarpaulin-report
path: cobertura.xml
path: |
protocols/cobertura.xml
roles/cobertura.xml
utils/cobertura.xml
message-generator-test:
needs: tarpaulin-test
Expand Down
8 changes: 8 additions & 0 deletions protocols/tarpaulin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[default]
features = "disable_nopanic prop_test noise_sv2 with_buffer_pool derive_codec_sv2 binary_codec_sv2 default core"
run-types = [ "Lib" ]
timeout = "120s"
fail-under = 20

[report]
out = ["Xml"]
8 changes: 8 additions & 0 deletions roles/tarpaulin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[default]
features = "default"
run-types = [ "Lib" ]
timeout = "120s"
fail-under = 20

[report]
out = ["Xml"]
13 changes: 13 additions & 0 deletions tarpaulin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

tarpaulin()
{
cargo +nightly tarpaulin --verbose
}

cd protocols
tarpaulin
cd ../roles
tarpaulin
cd ../utils
tarpaulin
9 changes: 0 additions & 9 deletions tarpaulin.toml

This file was deleted.

8 changes: 8 additions & 0 deletions utils/tarpaulin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[default]
features = "fuzz with_buffer_pool async_std debug tokio with_tokio default"
run-types = [ "Lib" ]
timeout = "120s"
fail-under = 7

[report]
out = ["Xml"]

0 comments on commit 42af194

Please sign in to comment.