Class: JenkinsJob::Postbuild::XUnitPublisher
- Inherits:
- BasicObject
- Defined in:
- lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb
Constant Summary collapse
- THRESH_HOLDS =
[:total_failed_tests, :new_failed_tests, :total_skipped_tests, :new_skipped_tests]
Instance Attribute Summary collapse
-
#failed_threshold_ ⇒ Object
readonly
Returns the value of attribute failed_threshold_.
-
#test_results_pattern_ ⇒ Object
readonly
Returns the value of attribute test_results_pattern_.
-
#unstable_threshold_ ⇒ Object
readonly
Returns the value of attribute unstable_threshold_.
Instance Method Summary collapse
- #failed_threshold(params = {}) ⇒ Object
-
#initialize(test_results_pattern) ⇒ XUnitPublisher
constructor
A new instance of XUnitPublisher.
- #test_results_pattern(value) ⇒ Object
- #unstable_threshold(params = {}) ⇒ Object
Constructor Details
#initialize(test_results_pattern) ⇒ XUnitPublisher
Returns a new instance of XUnitPublisher.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb', line 11 def initialize(test_results_pattern) @test_results_pattern_ = test_results_pattern @debug_ = false @keep_junit_reports_ = false @skip_junit_archiver_ = false @failed_threshold_ = {} @unstable_threshold_ = {} end |
Instance Attribute Details
#failed_threshold_ ⇒ Object (readonly)
Returns the value of attribute failed_threshold_.
5 6 7 |
# File 'lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb', line 5 def failed_threshold_ @failed_threshold_ end |
#test_results_pattern_ ⇒ Object (readonly)
Returns the value of attribute test_results_pattern_.
5 6 7 |
# File 'lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb', line 5 def test_results_pattern_ @test_results_pattern_ end |
#unstable_threshold_ ⇒ Object (readonly)
Returns the value of attribute unstable_threshold_.
5 6 7 |
# File 'lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb', line 5 def unstable_threshold_ @unstable_threshold_ end |
Instance Method Details
#failed_threshold(params = {}) ⇒ Object
26 27 28 |
# File 'lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb', line 26 def failed_threshold(params = {}) @failed_threshold_ = params end |
#test_results_pattern(value) ⇒ Object
22 23 24 |
# File 'lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb', line 22 def test_results_pattern(value) @test_results_pattern_ = value end |
#unstable_threshold(params = {}) ⇒ Object
30 31 32 |
# File 'lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb', line 30 def unstable_threshold(params = {}) @unstable_threshold_ = params end |