Skip to content

Commit

Permalink
Add a test for the new upgrade_name arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson committed Jul 19, 2024
1 parent a941ae7 commit 73509fe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test_run_analysis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,20 @@ def test_building_id
assert(!File.exist?(File.join(@testing_baseline, 'run2')))
end

def test_upgrade_name
yml = ' -y test/tests_yml_files/yml_valid/testing_upgrades.yml'
@command += yml
@command += ' -u "Foundation Type" -u Walls'

system(@command)

_test_measure_order(File.join(@testing_upgrades, 'testing_upgrades-FoundationType.osw'))
assert(File.exist?(File.join(@testing_upgrades, 'results-FoundationType.csv')))
_test_measure_order(File.join(@testing_upgrades, 'testing_upgrades-Walls.osw'))
assert(File.exist?(File.join(@testing_upgrades, 'results-Walls.csv')))
assert(!File.exist?(File.join(@testing_upgrades, 'results-Baseline.csv')))
end

def test_threads_and_keep_run_folders
yml = ' -y test/tests_yml_files/yml_valid/testing_baseline.yml'
@command += yml
Expand Down

0 comments on commit 73509fe

Please sign in to comment.