rakefiles/reporting_tasks.rb
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