Handling of mutants with Git

  • Obtain a clean copy of the program without being under git:

  •  mucpp clean
  • List generated mutants:

  •  git branch
  • If any changes have been carried out in the current branch, clean it before accessing another branch:

  •  git reset
    git checkout .
    git clean -xdf
  • If you want to maintain a change of a particular file in the current branch:

  •  git add file
    git commit -m "Observation"
  • Observe the status of the current branch:

  •  git status
  • Access a mutant:

  •  git checkout mutant
  • Return to the original program directory:

  •  git checkout master
  • Observe the change represented by a mutant:

  •  git log –p mutant
  • Delete a mutant:

  •  git branch –D mutant
  • Compare the mutants of an operator, for instance, those of the operator with code "02".

  •  mucpp compare . $(git branch | grep -w "m02.*")