rakefiles/reporting_tasks.rb
namespace 'cuketagger' 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['CUKETAGGER_REPORT_FOLDER'], true)
FileUtils.mkdir(ENV['CUKETAGGER_REPORT_FOLDER'])
end
desc 'Removes existing test results and code coverage'
task :clear_old_results => %i[clear_report_directory] # rubocop:disable Style/HashSyntax
end