Skip to content

Commit

Permalink
Merge pull request #10 from edmondop/mutation-testing
Browse files Browse the repository at this point in the history
Introducing mutation testing
  • Loading branch information
edmondop authored Feb 10, 2025
2 parents dee0dc7 + 5587ace commit 2d1f47b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/mutation_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Cargo Mutants

on:
workflow_dispatch: # Allows manual execution via GitHub UI

jobs:
mutation-testing:
name: Mutation Testing with cargo-mutants
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache Cargo dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-

- name: Install cargo-mutants
run: cargo install cargo-mutants

- name: Run Mutation Tests
run: cargo mutants --no-check --exact

0 comments on commit 2d1f47b

Please sign in to comment.