Skip to content

Commit 4457600

Browse files
committed
skip long running unit tests
only run long-running unit tests on latest supported clang version
1 parent 0217de1 commit 4457600

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.github/workflows/run-dev-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
working-directory: cpp-linter-lib
202202
env:
203203
CLANG_VERSION: '18'
204-
run: just test
204+
run: just test --run-ignored=all
205205

206206
- name: Generate Coverage HTML report
207207
working-directory: cpp-linter-lib

cpp-linter-lib/src/git.rs

+3
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ mod test {
412412
}
413413

414414
#[tokio::test]
415+
#[ignore]
415416
async fn with_no_changed_sources() {
416417
// commit with no modified C/C++ sources
417418
let sha = "0c236809891000b16952576dc34de082d7a40bf3";
@@ -426,6 +427,7 @@ mod test {
426427
}
427428

428429
#[tokio::test]
430+
#[ignore]
429431
async fn with_changed_sources() {
430432
// commit with modified C/C++ sources
431433
let sha = "950ff0b690e1903797c303c5fc8d9f3b52f1d3c5";
@@ -445,6 +447,7 @@ mod test {
445447
}
446448

447449
#[tokio::test]
450+
#[ignore]
448451
async fn with_staged_changed_sources() {
449452
// commit with no modified C/C++ sources
450453
let sha = "0c236809891000b16952576dc34de082d7a40bf3";

cpp-linter-lib/src/rest_api/github_api.rs

+2
Original file line numberDiff line numberDiff line change
@@ -899,12 +899,14 @@ mod test {
899899
}
900900

901901
#[tokio::test]
902+
#[ignore]
902903
#[should_panic(expected = "REST API secondary rate limit exceeded")]
903904
async fn secondary_rate_limit() {
904905
simulate_rate_limit(true).await;
905906
}
906907

907908
#[tokio::test]
909+
#[ignore]
908910
#[should_panic(expected = "REST API rate limit exceeded!")]
909911
async fn primary_rate_limit() {
910912
simulate_rate_limit(false).await;

justfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ py-dev:
1919

2020
# run the test suite
2121
[group("code coverage")]
22-
test:
22+
test *args='':
2323
cargo llvm-cov --no-report \
2424
nextest --manifest-path cpp-linter-lib/Cargo.toml \
25-
--lib --tests --color always
25+
--lib --tests --color always {{ args }}
2626

2727
# Clear previous test build artifacts
2828
[group("code coverage")]

0 commit comments

Comments
 (0)