Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading