enkessler/cuke_modeler

View on GitHub
rakefiles/reporting_tasks.rb

Summary

Maintainability
A
0 mins
Test Coverage
namespace 'cuke_modeler' do

  desc 'Removes the contents of the test reporting directory'
  task :clear_report_directory do
    puts Rainbow('Clearing report directory...').cyan

    FileUtils.remove_dir(ENV.fetch('CUKE_MODELER_REPORT_FOLDER'), true)
    FileUtils.mkdir(ENV.fetch('CUKE_MODELER_REPORT_FOLDER'))
  end

  desc 'Removes existing test results and code coverage'
  task :clear_old_results => %i[clear_report_directory] # rubocop:disable Style/HashSyntax

end