katediadechko / mutants-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mutants-demo

  1. Install Rust.
  2. Install testing tools.
    cargo install --locked cargo-tarpaulin cargo-mutants
    
  3. Calculate coverage -> 100%.
    cargo tarpaulin
    
  4. List available mutations.
    cargo mutants --list
    
  5. Run mutation tests -> not all mutations are caught.
    cargo mutants 
    
  6. Uncomment line #12 in src/math.rs.
  7. Run mutation tests again -> all mutations are caught.
    cargo mutants 
    

About


Languages

Language:Rust 100.0%