The Vimes package provides functionality for mutation testing a Julia package.
Follow these instructions for running Vimes on ClassImbalance:
Delete your existing .julia
directory:
rm -rf ~/.julia
Open a Julia REPL:
julia
Once in Julia, import Pkg:
import Pkg
Add the MikeInnes fork of CSTParser at the location
branch:
Pkg.add(Pkg.PackageSpec(url="https://github.com/MikeInnes/CSTParser.jl", rev="location"))
Add Vimes:
Pkg.add(Pkg.PackageSpec(url="https://github.com/MikeInnes/Vimes.jl"))
Checkout ClassImbalance for development:
Pkg.develop("ClassImbalance")
Run the ClassImbalance test suite once. This allows us to install and build all of our test-only dependencies. It also lets us confirm that the test suite passes before we start running Vimes.
Pkg.test("ClassImbalance")
Exit Julia
exit()
cd
to the ClassImbalance.jl repo:
cd ~/.julia/dev/ClassImbalance
Open a Julia REPL:
julia
Once in Julia, import Vimes:
import Vimes
Run Vimes:
Vimes.go(".")
Exit Julia:
exit()
cd
into the .vimes
folder:
cd .vimes
List all of the files in the .vimes
folder:
ls -la
Take a look at the .diff
files in the `.vimes`` folder, and write tests to cover each of the patches found by Vimes.