Sha256: 0c8135b9bdd16b54d5139128fcdb626da6016d57852b81129c0b9c40a47808e4

Contents?: true

Size: 513 Bytes

Versions: 3

Compression:

Stored size: 513 Bytes

Contents

require_relative './test_xml_generator'

class TestXmlNUnitPublisher < Test::Unit::TestCase
  def test_postbuild_nunit_publisher
    builder = JenkinsJob::Builder.new

    builder.freestyle 'foo' do
      postbuild do
        publish_nunit_report 'a\\b'
      end
    end

    actual = builder.config_as_xml_node('foo')

    { 'testResultsPattern' => 'a\\b' }.each do |k, v|
       assert_equal v, actual.xpath(
         "./project/publishers/hudson.plugins.nunit.NUnitPublisher/#{k}").text, k
     end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubyjobbuilderdsl-0.0.8 test/test_nunit_publisher.rb
rubyjobbuilderdsl-0.0.6 test/test_nunit_publisher.rb
rubyjobbuilderdsl-0.0.4 test/test_nunit_publisher.rb