Skip to content

Commit

Permalink
Add experimental run_ml subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed Nov 12, 2024
1 parent a0ff19a commit b26618e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions lib/mutant/cli/command/environment/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ def verify_usage(environment)
environment.config.usage.verify.fmap { environment }
end
end # Run

class RunML < Run
NAME = 'run_ml'
SHORT_DESCRIPTION = 'Run code analysis with ML integration'

def from_result(result)
super(result)

# overwrite this method with a monkeypatch and do your own stuff with `result` now.
end
end
end # Environment
end # Command
end # CLI
Expand Down
2 changes: 1 addition & 1 deletion lib/mutant/cli/command/root.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Environment < self
class Root < self
NAME = 'mutant'
SHORT_DESCRIPTION = 'mutation testing engine main command'
SUBCOMMANDS = [Environment::Run, Environment, Util].freeze
SUBCOMMANDS = [Environment::Run, Environment::RunML, Environment, Util].freeze
end # Root
end # Command
end # CLI
Expand Down

0 comments on commit b26618e

Please sign in to comment.