Module: RubyMinitestAnalyzer
- Defined in:
- lib/ruby_minitest_analyzer.rb,
lib/ruby_minitest_analyzer/version.rb
Constant Summary collapse
- VERSION =
'0.1.1'
Class Method Summary collapse
- .load_test_files(minitest_analyzer_config) ⇒ Object
- .run!(minitest_analyzer_config = nil, should_exit_process: false) ⇒ Object
Class Method Details
.load_test_files(minitest_analyzer_config) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/ruby_minitest_analyzer.rb', line 21 def self.load_test_files(minitest_analyzer_config) # Load all the tests and required files such as test_helper.rb if minitest_analyzer_config.nil? puts('Not requiring files within the gem since tests files are loaded outside') else minitest_analyzer_config.setup end end |
.run!(minitest_analyzer_config = nil, should_exit_process: false) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/ruby_minitest_analyzer.rb', line 9 def self.run!(minitest_analyzer_config = nil, should_exit_process: false) load_test_files(minitest_analyzer_config) # Analyze the data and print the results puts "Analyzing!\n\n" duplicated_suites_data = MinitestAnalyzer.analyze presenter = TestSummaryPresenter.new(duplicated_suites_data) presenter.present Process.exit! if should_exit_process puts 'Finished' end |