Module: MutationTester
- Defined in:
- lib/mutation_tester.rb,
lib/mutation_tester/core.rb,
lib/mutation_tester/mutator.rb,
lib/mutation_tester/railtie.rb,
lib/mutation_tester/version.rb,
lib/mutation_tester/rake_task.rb,
lib/mutation_tester/fork_runner.rb,
lib/mutation_tester/batch_runner.rb,
lib/mutation_tester/test_command.rb,
lib/mutation_tester/configuration.rb,
lib/mutation_tester/mutation_runner.rb,
lib/mutation_tester/in_memory_loader.rb,
lib/mutation_tester/progress_display.rb,
lib/mutation_tester/framework_detector.rb,
lib/mutation_tester/reporters/base_reporter.rb,
lib/mutation_tester/reporters/html_reporter.rb,
lib/mutation_tester/reporters/json_reporter.rb,
lib/mutation_tester/reporters/console_reporter.rb,
lib/mutation_tester/reporters/batch_json_reporter.rb
Defined Under Namespace
Modules: FrameworkDetector, InMemoryLoader, Reporters
Classes: BatchRunner, Configuration, Core, Error, ForkRunner, MutationRunner, Mutator, ProgressDisplay, Railtie, TestCommand
Constant Summary
collapse
- VERSION =
'1.2.0'.freeze
- RAKE_TASKS_PATH =
File.expand_path('../tasks/mutation_tester.rake', __dir__)
- BENCH_TASKS_PATH =
File.expand_path('../tasks/bench.rake', __dir__)
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
34
35
36
|
# File 'lib/mutation_tester.rb', line 34
def configuration
@configuration ||= Configuration.new
end
|
Class Method Details
38
39
40
|
# File 'lib/mutation_tester.rb', line 38
def configure
yield(configuration)
end
|
.load_rake_tasks ⇒ Object
.reset_configuration! ⇒ Object
42
43
44
|
# File 'lib/mutation_tester.rb', line 42
def reset_configuration!
@configuration = Configuration.new
end
|
.run(source_file, spec_file, options = {}) ⇒ Object
46
47
48
49
50
|
# File 'lib/mutation_tester.rb', line 46
def run(source_file, spec_file, options = {})
config = configuration.merge(options)
core = Core.new(source_file, spec_file, config)
core.run
end
|