Skip to content

Commit 2652152

Browse files
committed
measure coverage from integration tests
1 parent e133724 commit 2652152

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

cpp-linter-lib/src/clang_tools/clang_tidy.rs

-7
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ use crate::{
1818
common_fs::{normalize_path, FileObj},
1919
};
2020

21-
// /// Used to deserialize a JSON compilation database
22-
// #[derive(Deserialize, Debug, Clone)]
23-
// pub struct CompilationDatabase {
24-
// /// A list of [`CompilationUnit`]
25-
// units: Vec<CompilationUnit>,
26-
// }
27-
2821
/// Used to deserialize a json compilation database's translation unit.
2922
///
3023
/// The only purpose this serves is to normalize relative paths for build systems that

justfile

+7-9
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ py-dev:
2222
test:
2323
cargo llvm-cov --no-report \
2424
nextest --manifest-path cpp-linter-lib/Cargo.toml \
25-
--lib --color always
25+
--lib --tests --color always
2626

2727
# generate and open pretty coverage report
2828
[group("code coverage")]
@@ -40,30 +40,28 @@ llvm-cov *args='':
4040
# generate lcov.info
4141
[group("code coverage")]
4242
lcov:
43-
@cargo llvm-cov report --lcov --output-path lcov.info
43+
cargo llvm-cov report --lcov --output-path lcov.info --ignore-filename-regex main
4444

4545
# serve docs
4646
[group("docs")]
4747
docs open='':
48-
@mdbook serve docs {{ open }}
48+
mdbook serve docs {{ open }}
4949

5050
# build docs
5151
[group("docs")]
52-
docs-build:
53-
mdbook build docs --open
52+
docs-build open='':
53+
mdbook build docs {{ open }}
5454

5555
# rust docs
5656
[group("docs")]
57-
docs-rs:
58-
cargo doc --no-deps --lib --manifest-path cpp-linter-lib/Cargo.toml --open
57+
docs-rs open='':
58+
cargo doc --no-deps --lib --manifest-path cpp-linter-lib/Cargo.toml {{ open }}
5959

6060
# run cpp-linter native binary
6161
[group("bin")]
6262
run *args:
6363
cargo run --bin cpp-linter --manifest-path cpp-linter-lib/Cargo.toml -- {{ args }}
6464

65-
# The tool parameter can be set to 'cross' when cross compiling.
66-
6765
# build the native binary
6866
[group("bin")]
6967
build *args='':

0 commit comments

Comments
 (0)