mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-03-04 12:18:03 +00:00
Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
This commit is contained in:
32
dot_config/nushell/nu_scripts/make_release/get_coverage.nu
Normal file
32
dot_config/nushell/nu_scripts/make_release/get_coverage.nu
Normal file
@@ -0,0 +1,32 @@
|
||||
# Test coverage gathering for nushell
|
||||
# Uses cargo-llvm-cov
|
||||
# Uses separate execution to track the integration tests
|
||||
# Hacked together by @sholderbach
|
||||
|
||||
# Get test coverage for nushell
|
||||
def main [
|
||||
--extra # Get coverage for extra features
|
||||
] {
|
||||
cargo llvm-cov show-env --export-prefix |
|
||||
lines |
|
||||
str substring 7.. |
|
||||
split column '=' |
|
||||
str trim -c '"' |
|
||||
transpose |
|
||||
headers |
|
||||
reject 'column1' |
|
||||
get 0 |
|
||||
str trim |
|
||||
load-env
|
||||
|
||||
cargo llvm-cov clean --workspace
|
||||
if $extra {
|
||||
cargo build --workspace --features extra
|
||||
cargo test --workspace --features extra
|
||||
} else {
|
||||
cargo build --workspace
|
||||
cargo test --workspace
|
||||
}
|
||||
cargo llvm-cov --no-run --lcov --output-path lcov.info
|
||||
cargo llvm-cov --no-run --html
|
||||
}
|
||||
Reference in New Issue
Block a user