Sha256: c50997304348f7d47732f4ac3cea7e01cf90b901370b1ef8c0e8fefc4d35e96e

Contents?: true

Size: 1.14 KB

Versions: 4

Compression:

Stored size: 1.14 KB

Contents

# *******************************************************************************
# OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
# See also https://openstudio.net/license
# *******************************************************************************

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

# Load in the rake tasks from the base extension gem
require 'openstudio/extension/rake_task'
require 'openstudio/common_measures'
rake_task = OpenStudio::Extension::RakeTask.new
rake_task.set_extension_class(OpenStudio::CommonMeasures::Extension, 'nrel/openstudio-common-measures-gem')

require 'openstudio_measure_tester/rake_task'
OpenStudioMeasureTester::RakeTask.new

task default: :spec

desc 'Delete measure test output'
task :delete_measure_test_outputs do
  require 'fileutils'

  puts 'Deleting tests/output directory from measures.'

  # get measures in repo
  measures = Dir.glob('**/**/**/measure.rb')

  #create unique list of parent directories for measures.
  measures.each do |i|
    FileUtils.rm_rf(i.gsub("measure.rb","tests/output"))
  end
  puts "Deleted test outputs"

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openstudio-common-measures-0.11.0 Rakefile
openstudio-common-measures-0.10.0 Rakefile
openstudio-common-measures-0.9.0 Rakefile
openstudio-common-measures-0.8.0 Rakefile