Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experimental run_ml subcommand #1460

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
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