openstudio_measure_tester 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9e7bcba7a1df335f2daa0420324a06a0f242df80336e582d7b647e765c93d9a
4
- data.tar.gz: 32edd1777cf4283ec563e8d163c3cc61fee2cda250a10a2faefa8336f67fc0e4
3
+ metadata.gz: b2154c98870a730a34aec0ea97ae64385c72963384da1486bb4097fd8bcf049e
4
+ data.tar.gz: 2e4addb622ad23fc056aa3f6e41e654f901b971175c5b1e987e036fd444f93c4
5
5
  SHA512:
6
- metadata.gz: 93950c1fe1a760239c8ce82f0a5ab726972fe4059d105f22bd30471bebfed0f6c05299dee273d8d695e70922a79bedcb4540e8a047388701551fe72c7ff830b3
7
- data.tar.gz: 69a00f0d8b93e8f8d3385dd719e77015fa180c27948100fc244cff6602f3d0a4b3632879f1d49bc460df2a84f4e034d118499cea0f614fce9d7f77fd073a0075
6
+ metadata.gz: 8d559a442f9a549592ee70666227e2e8c89f8ac14ab0c74a421c2f0d40838f2f98518394f00bfab8a1646a091b07aa29ab72d8e563f98e9c91fd5bd0bac8ac6d
7
+ data.tar.gz: 97a14956b4088ff07b45716864148d78dcdbded3dbe5d27109fbaf490d451efafeeafd8448db278b450093aeafd19a3c14ea65fcc76e4fedb42011fd7ed4955b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # Version 0.4.0
2
+
3
+ * Upgrade to Ruby 3.2.2
4
+ * updaring gem versions of rubocop and simplecov
5
+
6
+ # Version 0.3.3
7
+
8
+ * Update license
9
+ * Fixed [#66] ( [https://github.com/urbanopt/urbanopt-cli/issues/421](https://github.com/NREL/OpenStudio-measure-tester-gem/issues/66) ), Pin parser dependency to avoid native extensions issue
10
+
1
11
  # Version 0.3.2
2
12
 
3
13
  * Upgrade to new version of git, 1.12.0
data/LICENSE.md CHANGED
@@ -1,28 +1,13 @@
1
- OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
2
2
 
3
- Redistribution and use in source and binary forms, with or without modification, are permitted provided
4
- that the following conditions are met:
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
4
 
6
- (1) Redistributions of source code must retain the above copyright notice, this list of conditions and
7
- the following disclaimer.
5
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8
6
 
9
- (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
10
- the following disclaimer in the documentation and/or other materials provided with the distribution.
7
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
11
8
 
12
- (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or
13
- promote products derived from this software without specific prior written permission from the respective
14
- party.
9
+ 3. Redistribution of this software, without modification, must refer to the software by the same designation. Redistribution of a modified version of this software (i) may not refer to the modified version by the same designation, or by any confusingly similar designation, and (ii) must refer to the underlying software originally provided by Alliance as “OpenStudio®”. Except to comply with the foregoing, the term “OpenStudio®”, or any confusingly similar designation may not be used to refer to any modified version of this software or any modified version of the underlying software originally provided by Alliance without the prior written consent of Alliance.
15
10
 
16
- (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other
17
- derivative works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar
18
- designation without specific prior written permission from Alliance for Sustainable Energy, LLC.
11
+ 4. The name of the copyright holder(s), any contributors, the United States Government, the United States Department of Energy, or any of their employees may not be used to endorse or promote products derived from this software without specific prior written permission from the respective party.
19
12
 
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
21
- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22
- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED
23
- STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY
24
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
27
- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
28
- DAMAGE.
13
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/Rakefile CHANGED
@@ -1,5 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
7
+
3
8
  require 'bundler/gem_tasks'
4
9
  require 'rspec/core/rake_task'
5
10
 
@@ -1,32 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  class String
32
9
  def to_snakecase
@@ -1,32 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  module OpenStudioMeasureTester
32
9
  class Coverage
@@ -1,32 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  require 'erb'
32
9
  module OpenStudioMeasureTester
@@ -45,7 +22,7 @@ module OpenStudioMeasureTester
45
22
  end
46
23
 
47
24
  def render
48
- rendered = ERB.new(@template, 0, nil, '@html').result(binding)
25
+ rendered = ERB.new(@template, trim_mode: nil, eoutvar: '@html').result(binding)
49
26
  save_dir = "#{@test_results_directory}/dashboard"
50
27
 
51
28
  # Render the dashboard
@@ -0,0 +1,110 @@
1
+ # frozen_string_literal: true
2
+
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
7
+
8
+ module OpenStudioMeasureTester
9
+ class GithubActionsReport
10
+ attr_reader :minitest_summary_table, :all_annotations
11
+
12
+ # @param test_results_directory [String]: The directory
13
+ def initialize(test_results_directory)
14
+ @test_results_directory = test_results_directory
15
+ file = File.read("#{@test_results_directory}/combined_results.json")
16
+ @hash = JSON.parse(file)
17
+ @minitest_summary_table = nil
18
+ @all_annotations = []
19
+ end
20
+
21
+ def write_step_summary(msg)
22
+ puts msg
23
+ if !ENV['GITHUB_STEP_SUMMARY'].nil?
24
+ File.write(ENV['GITHUB_STEP_SUMMARY'], "#{msg}\n", mode: 'a+')
25
+ end
26
+ end
27
+
28
+ def hash_to_markdown(h, header0, header1)
29
+ n0 = [h.keys.map(&:to_s).map(&:size).max, header0.size].max
30
+ n1 = [h.values.map(&:to_s).map(&:size).max, header1.size].max
31
+
32
+ content = [
33
+ "| #{header0.ljust(n0)} | #{header1.ljust(n1)} |",
34
+ "| " + "-" * n0 + " | " + "-" * n1 + " |",
35
+ ] + h.map{|k, v| "| #{k.ljust(n0)} | #{v.to_s.ljust(n1)} |"}
36
+ return content.join("\n")
37
+ end
38
+
39
+ def make_minitest_step_summary_table
40
+
41
+ write_step_summary("## Minitest")
42
+ write_step_summary("")
43
+
44
+ total_tests = @hash['minitest']['total_tests']
45
+ total_assertions = @hash['minitest']['total_assertions']
46
+ total_errors = @hash['minitest']['total_errors']
47
+ total_failures = @hash['minitest']['total_failures']
48
+ total_skipped = @hash['minitest']['total_skipped']
49
+ total_compatibility_errors = @hash['minitest']['total_compatibility_errors']
50
+ total_load_errors = @hash['minitest'].fetch('total_load_errors', []).count
51
+
52
+ passed = total_tests - (total_failures + total_errors + total_skipped)
53
+ pct = passed.to_f / (total_tests - total_skipped).to_f
54
+
55
+ h = {
56
+ 'Total Tests' => total_tests,
57
+ 'Load Error' => total_load_errors,
58
+ 'Passed' => passed,
59
+ 'Success Rate' => '%.2f%%' % (pct * 100.0),
60
+ 'Failures' => total_failures,
61
+ 'Errors' => total_errors,
62
+ 'Skipped' => total_skipped,
63
+ 'Incompatible' => total_compatibility_errors,
64
+ 'Total Assertions' => total_assertions,
65
+ }
66
+
67
+ @minitest_summary_table = hash_to_markdown(h, "Metric", "Value")
68
+
69
+ write_step_summary(@minitest_summary_table)
70
+ write_step_summary("")
71
+ end
72
+
73
+ def make_minitest_annotations
74
+ @all_annotations = []
75
+
76
+ report_xmls = Dir["#{@test_results_directory}/minitest/reports/TEST-*.xml"]
77
+ report_xmls.each do |report_xml|
78
+ doc = REXML::Document.new(File.open(report_xml)).root
79
+ testsuite_element = doc.elements['testsuite']
80
+ filepath = testsuite_element.attributes['filepath']
81
+ testsuite_element.elements.each('testcase') do |testcase|
82
+ test_name = testcase.attributes['name']
83
+ line = testcase.attributes['lineno'].to_i
84
+ tested_class = testcase.attributes['classname']
85
+
86
+ testcase.elements.each('failure') do |x|
87
+ title = x.attributes['type']
88
+ message = x.attributes['message']
89
+ annot = "::error file=#{filepath},line=#{line},endLine=#{line + 1},title=#{title}::#{tested_class}.#{test_name}: #{message}"
90
+ @all_annotations << annot
91
+ end
92
+ testcase.elements.each('error') do |x|
93
+ title = x.attributes['type']
94
+ message = x.attributes['message']
95
+ annot = "::error file=#{filepath},line=#{line},endLine=#{line + 1},title=#{title}::#{message}"
96
+ @all_annotations << annot
97
+ end
98
+ testcase.elements.each('skipped') do |x|
99
+ title = x.attributes['type']
100
+ message = x.attributes['message']
101
+ annot = "::warning file=#{filepath},line=#{line},endLine=#{line + 1},title=#{title}::#{message}"
102
+ @all_annotations << annot
103
+ end
104
+ end
105
+ end
106
+ @all_annotations.each { |a| puts a}
107
+ nil
108
+ end
109
+ end
110
+ end
@@ -1,32 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  module OpenStudioMeasureTester
32
9
  class MinitestResult
@@ -1,32 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  module OpenStudioMeasureTester
32
9
  class OpenStudioStyle
@@ -1,32 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  module OpenStudioMeasureTester
32
9
  class OpenStudioTestingResult
@@ -1,32 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  require 'rake'
32
9
  require 'rake/tasklib'
@@ -50,7 +27,7 @@ module OpenStudioMeasureTester
50
27
  def setup_subtasks(name)
51
28
  namespace name do
52
29
  ####################################### Minitest and Coverage #######################################
53
- desc 'new test task'
30
+ desc 'Run Minitest and Coverage on Measures'
54
31
  task :test do
55
32
  runner = OpenStudioMeasureTester::Runner.new(Rake.application.original_dir)
56
33
  # Need to pass in the current directory because the results of minitest and coverage end up going into
@@ -1,32 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  module OpenStudioMeasureTester
32
9
  class RubocopResult
@@ -113,7 +90,8 @@ module OpenStudioMeasureTester
113
90
  doc.elements.each('//checkstyle/file') do |rc_file|
114
91
  # Allow processing when the file is just the measure.rb
115
92
  if rc_file.attributes['name'] != 'measure.rb'
116
- if !rc_file.attributes['name'].include? measure_name
93
+ parts = rc_file.attributes['name'].split(File::SEPARATOR)
94
+ if !parts.include? measure_name
117
95
  next
118
96
  end
119
97
  end
@@ -1,32 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  module OpenStudioMeasureTester
32
9
  # The runner is the workhorse that executes the tests. This class does not invoke Rake and can be run
@@ -55,6 +32,12 @@ module OpenStudioMeasureTester
55
32
  template.render
56
33
  end
57
34
 
35
+ def github_actions_report
36
+ gha_reporter = OpenStudioMeasureTester::GithubActionsReport.new(test_results_dir)
37
+ gha_reporter.make_minitest_step_summary_table
38
+ gha_reporter.make_minitest_annotations
39
+ end
40
+
58
41
  # Prepare the current directory and the root directory to remove old test results before running
59
42
  # the new tests
60
43
  #
@@ -90,8 +73,10 @@ module OpenStudioMeasureTester
90
73
  # copy over the .rubocop.yml file into the root directory of where this is running.
91
74
  shared_rubocop_file = File.expand_path('../../.rubocop.yml', File.dirname(__FILE__))
92
75
  dest_file = "#{File.expand_path(@base_dir)}/.rubocop.yml"
93
- if shared_rubocop_file != dest_file
76
+ if !File.exist?(dest_file)
94
77
  FileUtils.copy(shared_rubocop_file, dest_file)
78
+ elsif File.read(shared_rubocop_file) != File.read(dest_file)
79
+ puts "Using specific custom .rubocop.yml rather than the OpenStudio-measure-tester-gem's one"
95
80
  end
96
81
 
97
82
  puts "Current directory is #{@base_dir}"
@@ -119,6 +104,8 @@ module OpenStudioMeasureTester
119
104
  # call the create dashboard command now that we have results
120
105
  dashboard
121
106
 
107
+ github_actions_report if ENV["GITHUB_ACTIONS"]
108
+
122
109
  # return the results exit code
123
110
  return results.exit_code
124
111
  end
@@ -169,6 +156,9 @@ module OpenStudioMeasureTester
169
156
  # output_path: 'junk.xml',
170
157
  auto_correct: auto_correct,
171
158
  color: false,
159
+ # cf #76 - Because we pass a glob to the Runner.run, we must pass
160
+ # force_exclusion to respect the files excluded in the .rubocop.yml
161
+ force_exclusion: true,
172
162
  formatters: ['simple', ['RuboCop::Formatter::CheckstyleFormatter', rubocop_results_file]]
173
163
  }
174
164
 
@@ -1,33 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  module OpenStudioMeasureTester
32
- VERSION = '0.3.2'.freeze
9
+ VERSION = '0.4.0'.freeze
33
10
  end
@@ -1,32 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ########################################################################################################################
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7
- # following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10
- # disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
13
- # following disclaimer in the documentation and/or other materials provided with the distribution.
14
- #
15
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
16
- # products derived from this software without specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
19
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
20
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
25
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- ########################################################################################################################
3
+ # *******************************************************************************
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
6
+ # *******************************************************************************
30
7
 
31
8
  require 'openstudio'
32
9
 
@@ -34,6 +11,7 @@ require 'pp'
34
11
  require 'rexml/document'
35
12
  require 'minitest'
36
13
  require 'simplecov'
14
+ require 'json'
37
15
 
38
16
  begin
39
17
  require 'git'
@@ -59,6 +37,7 @@ require_relative 'openstudio_measure_tester/coverage'
59
37
  require_relative 'openstudio_measure_tester/rubocop_result'
60
38
  require_relative 'openstudio_measure_tester/openstudio_testing_result'
61
39
  require_relative 'openstudio_measure_tester/dashboard'
40
+ require_relative 'openstudio_measure_tester/github_actions_report'
62
41
  require_relative 'openstudio_measure_tester/runner'
63
42
 
64
43
  require_relative 'openstudio_measure_tester/rake_task'
@@ -27,17 +27,18 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.required_ruby_version = '~> 2.7.0'
30
+ spec.required_ruby_version = '~> 3.2.2'
31
31
 
32
32
  spec.add_dependency 'git', '~> 1.12.0'
33
33
  spec.add_dependency 'minitest', '~> 5.14.0'
34
34
  spec.add_dependency 'minitest-reporters', '~> 1.4.2'
35
35
  spec.add_dependency 'rake', '~> 13.0'
36
- spec.add_dependency 'rubocop', '~> 1.15.0'
37
- spec.add_dependency 'rubocop-performance', '~> 1.11.3'
38
- spec.add_dependency 'rubocop-checkstyle_formatter', '~> 0.4.0'
39
- spec.add_dependency 'simplecov', '~> 0.18.2'
36
+ spec.add_dependency 'parser', '3.2.2.2'
37
+ spec.add_dependency 'rubocop', '1.50'
38
+ spec.add_dependency 'rubocop-performance', '1.20.0'
39
+ spec.add_dependency 'rubocop-checkstyle_formatter', '0.6.0'
40
+ spec.add_dependency 'simplecov', '0.22.0'
40
41
 
41
- spec.add_development_dependency 'bundler', '>= 2.1.0'
42
+ spec.add_development_dependency 'bundler', '2.4.10'
42
43
  spec.add_development_dependency 'rspec', '~> 3.9'
43
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio_measure_tester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Long
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2022-10-26 00:00:00.000000000 Z
14
+ date: 2024-05-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: git
@@ -69,76 +69,90 @@ dependencies:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
71
  version: '13.0'
72
+ - !ruby/object:Gem::Dependency
73
+ name: parser
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - '='
77
+ - !ruby/object:Gem::Version
78
+ version: 3.2.2.2
79
+ type: :runtime
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - '='
84
+ - !ruby/object:Gem::Version
85
+ version: 3.2.2.2
72
86
  - !ruby/object:Gem::Dependency
73
87
  name: rubocop
74
88
  requirement: !ruby/object:Gem::Requirement
75
89
  requirements:
76
- - - "~>"
90
+ - - '='
77
91
  - !ruby/object:Gem::Version
78
- version: 1.15.0
92
+ version: '1.50'
79
93
  type: :runtime
80
94
  prerelease: false
81
95
  version_requirements: !ruby/object:Gem::Requirement
82
96
  requirements:
83
- - - "~>"
97
+ - - '='
84
98
  - !ruby/object:Gem::Version
85
- version: 1.15.0
99
+ version: '1.50'
86
100
  - !ruby/object:Gem::Dependency
87
101
  name: rubocop-performance
88
102
  requirement: !ruby/object:Gem::Requirement
89
103
  requirements:
90
- - - "~>"
104
+ - - '='
91
105
  - !ruby/object:Gem::Version
92
- version: 1.11.3
106
+ version: 1.20.0
93
107
  type: :runtime
94
108
  prerelease: false
95
109
  version_requirements: !ruby/object:Gem::Requirement
96
110
  requirements:
97
- - - "~>"
111
+ - - '='
98
112
  - !ruby/object:Gem::Version
99
- version: 1.11.3
113
+ version: 1.20.0
100
114
  - !ruby/object:Gem::Dependency
101
115
  name: rubocop-checkstyle_formatter
102
116
  requirement: !ruby/object:Gem::Requirement
103
117
  requirements:
104
- - - "~>"
118
+ - - '='
105
119
  - !ruby/object:Gem::Version
106
- version: 0.4.0
120
+ version: 0.6.0
107
121
  type: :runtime
108
122
  prerelease: false
109
123
  version_requirements: !ruby/object:Gem::Requirement
110
124
  requirements:
111
- - - "~>"
125
+ - - '='
112
126
  - !ruby/object:Gem::Version
113
- version: 0.4.0
127
+ version: 0.6.0
114
128
  - !ruby/object:Gem::Dependency
115
129
  name: simplecov
116
130
  requirement: !ruby/object:Gem::Requirement
117
131
  requirements:
118
- - - "~>"
132
+ - - '='
119
133
  - !ruby/object:Gem::Version
120
- version: 0.18.2
134
+ version: 0.22.0
121
135
  type: :runtime
122
136
  prerelease: false
123
137
  version_requirements: !ruby/object:Gem::Requirement
124
138
  requirements:
125
- - - "~>"
139
+ - - '='
126
140
  - !ruby/object:Gem::Version
127
- version: 0.18.2
141
+ version: 0.22.0
128
142
  - !ruby/object:Gem::Dependency
129
143
  name: bundler
130
144
  requirement: !ruby/object:Gem::Requirement
131
145
  requirements:
132
- - - ">="
146
+ - - '='
133
147
  - !ruby/object:Gem::Version
134
- version: 2.1.0
148
+ version: 2.4.10
135
149
  type: :development
136
150
  prerelease: false
137
151
  version_requirements: !ruby/object:Gem::Requirement
138
152
  requirements:
139
- - - ">="
153
+ - - '='
140
154
  - !ruby/object:Gem::Version
141
- version: 2.1.0
155
+ version: 2.4.10
142
156
  - !ruby/object:Gem::Dependency
143
157
  name: rspec
144
158
  requirement: !ruby/object:Gem::Requirement
@@ -186,6 +200,7 @@ files:
186
200
  - lib/openstudio_measure_tester/core_ext.rb
187
201
  - lib/openstudio_measure_tester/coverage.rb
188
202
  - lib/openstudio_measure_tester/dashboard.rb
203
+ - lib/openstudio_measure_tester/github_actions_report.rb
189
204
  - lib/openstudio_measure_tester/minitest_result.rb
190
205
  - lib/openstudio_measure_tester/openstudio_style.rb
191
206
  - lib/openstudio_measure_tester/openstudio_testing_result.rb
@@ -200,7 +215,7 @@ licenses: []
200
215
  metadata:
201
216
  bug_tracker_uri: https://github.com/NREL/OpenStudio-measure-tester-gem/issues
202
217
  changelog_uri: https://github.com/NREL/OpenStudio-measure-tester-gem/blob/develop/CHANGELOG.md
203
- source_code_uri: https://github.com/NREL/OpenStudio-measure-tester-gem/tree/v0.3.2
218
+ source_code_uri: https://github.com/NREL/OpenStudio-measure-tester-gem/tree/v0.4.0
204
219
  post_install_message:
205
220
  rdoc_options: []
206
221
  require_paths:
@@ -209,14 +224,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
209
224
  requirements:
210
225
  - - "~>"
211
226
  - !ruby/object:Gem::Version
212
- version: 2.7.0
227
+ version: 3.2.2
213
228
  required_rubygems_version: !ruby/object:Gem::Requirement
214
229
  requirements:
215
230
  - - ">="
216
231
  - !ruby/object:Gem::Version
217
232
  version: '0'
218
233
  requirements: []
219
- rubygems_version: 3.1.4
234
+ rubygems_version: 3.4.10
220
235
  signing_key:
221
236
  specification_version: 4
222
237
  summary: Testing framework for OpenStudio measures