Sha256: b8f40ab1d826ed91e3705aca5094c80e087d938bc27028376529d7418c1e8df6

Contents?: true

Size: 665 Bytes

Versions: 5

Compression:

Stored size: 665 Bytes

Contents

require_relative './test_xml_generator'

class TestXmlXTapPublisher < Test::Unit::TestCase
  def test_postbuild_tap_publisher
    builder = JenkinsJob::Builder.new

    builder.freestyle 'foo' do
      postbuild do
        publish_tap 'TestResultsInTapFormat.tap' do
          verbose true
          require_plan true
        end
      end
    end

    actual = builder.config_as_xml_node('foo')

    { 'testResults' => 'TestResultsInTapFormat.tap',
      'verbose' => 'true',
      'require_plan' => 'true'
    }.each do |k, v|
      assert v, actual.xpath("./project/publishers/org.tap4j.plugin.TapPublisher/#{k}").text
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubyjobbuilderdsl-0.0.5 test/test_tap_publisher.rb
rubyjobbuilderdsl-0.0.3 test/test_tap_publisher.rb
rubyjobbuilderdsl-0.0.2 test/test_tap_publisher.rb
rubyjobbuilderdsl-0.0.1 test/test_tap_publisher.rb
rubyjobbuilderdsl-0.0.0 test/test_tap_publisher.rb