From 08ae0adb158d1ed5270c1f59e9528a28e3d59d21 Mon Sep 17 00:00:00 2001 From: Jason Garber Date: Mon, 3 Jun 2024 17:39:46 -0400 Subject: [PATCH 1/2] Add `.mutant.yml` configuration file This YML file is one of several ways to configure the Mutant CLI: https://github.com/mbj/mutant/blob/main/docs/configuration.md I chose this route for ease of invocation: `bundle exec mutant run`. --- .mutant.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .mutant.yml diff --git a/.mutant.yml b/.mutant.yml new file mode 100644 index 0000000..a0cfc23 --- /dev/null +++ b/.mutant.yml @@ -0,0 +1,10 @@ +includes: + - "lib" +requires: + - "humanize" +integration: + name: "rspec" +matcher: + subjects: + - "Humanize" +usage: "opensource" From aed2961736bb7c87cc2ac5f58cda957b09e994f8 Mon Sep 17 00:00:00 2001 From: Jason Garber Date: Mon, 3 Jun 2024 17:41:22 -0400 Subject: [PATCH 2/2] Update documentation, remove shell script Following on from the previous commit (08ae0ad), this commit updates the README with the updated Mutant invocation and removes the custom shell script. A future improvement _might_ introduce a binstub which would further simplify the invocation to something like `bin/mutant run`. --- README.markdown | 2 +- bin/run_mutant | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100755 bin/run_mutant diff --git a/README.markdown b/README.markdown index 86452a3..4a97962 100644 --- a/README.markdown +++ b/README.markdown @@ -150,7 +150,7 @@ Currently supported locales: Install development dependencies by running `bundle install`. -You can run mutation testing by calling `bin/run_mutant`. +You can run mutation testing by calling `bundle exec mutant run`. ## Credits diff --git a/bin/run_mutant b/bin/run_mutant deleted file mode 100755 index f7b8a01..0000000 --- a/bin/run_mutant +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -mutant --include lib --require humanize --use rspec Humanize