mirror of
https://github.com/imjasonh/krust
synced 2026-07-08 06:45:32 +00:00
refactor: Centralize test flags and commands in Makefile
- Add TEST_FLAGS variable for single-threaded test execution - Create verbose targets for CI usage - Update pre-commit hooks to use make targets - Update CI workflow to use make targets - This ensures consistency between local and CI test execution 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c5b7bc1236
commit
e15bd1df8c
3 changed files with 33 additions and 24 deletions
|
|
@ -4,35 +4,35 @@ repos:
|
|||
hooks:
|
||||
- id: rustfmt
|
||||
name: rustfmt
|
||||
entry: cargo fmt -- --check
|
||||
entry: make check-fmt
|
||||
language: system
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
|
||||
- id: clippy
|
||||
name: clippy
|
||||
entry: cargo clippy -- -D warnings
|
||||
entry: make lint
|
||||
language: system
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
|
||||
- id: cargo-check
|
||||
name: cargo check
|
||||
entry: cargo check
|
||||
entry: make check-code
|
||||
language: system
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
|
||||
- id: cargo-test
|
||||
name: cargo test
|
||||
entry: cargo test -- --test-threads=1
|
||||
entry: make test-unit
|
||||
language: system
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
|
||||
- id: cargo-test-e2e
|
||||
name: cargo e2e tests
|
||||
entry: cargo test --test '*' -- --test-threads=1
|
||||
entry: make test-e2e
|
||||
language: system
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue