Sha256: 204ea28cf5e5200ce1c41c752ead3095be09c10a3d240a4dcb9ed6fb8fb4c9dd

Contents?: true

Size: 533 Bytes

Versions: 5

Compression:

Stored size: 533 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

5 entries across 5 versions & 1 rubygems

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