Sha256: e81f3f63a89ca34ccc83479140dff0cafa937a140347461ea97c5a9a72991c90

Contents?: true

Size: 931 Bytes

Versions: 5

Compression:

Stored size: 931 Bytes

Contents

# dsl methods for job builder
module JenkinsJob
  module Postbuild
    class XUnitPublisher < BasicObject
      attr_reader :test_results_pattern_,
                  :failed_threshold_, :unstable_threshold_

      THRESH_HOLDS = [:total_failed_tests, :new_failed_tests,
                      :total_skipped_tests, :new_skipped_tests]

      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

      def test_results_pattern(value)
        @test_results_pattern_ = value
      end

      def failed_threshold(params = {})
        @failed_threshold_ =  params
      end

      def unstable_threshold(params = {})
        @unstable_threshold_ = params
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubyjobbuilderdsl-0.0.5 lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb
rubyjobbuilderdsl-0.0.3 lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb
rubyjobbuilderdsl-0.0.2 lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb
rubyjobbuilderdsl-0.0.1 lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb
rubyjobbuilderdsl-0.0.0 lib/rubyjobbuilderdsl/postbuild/xunit_publisher.rb