Sha256: 883742db9ccd556071f190801f84dd8fcb2bea02c846679b43104b676fa39394
Contents?: true
Size: 594 Bytes
Versions: 5
Compression:
Stored size: 594 Bytes
Contents
require_relative './test_xml_generator' class TestXmlAnt < Test::Unit::TestCase def test_javadoc builder = JenkinsJob::Builder.new builder.freestyle 'foo' do postbuild do publish_pmd do pmd_results 'build/phppmd.txt' end end end actual = builder.config_as_xml_node('foo') { 'pattern' => 'build/phppmd.txt', 'thresholdLimit' => 'low', 'pluginName' => '[PMD]' }.each do |k, v| assert_equal v, actual.xpath("./project/publishers/hudson.plugins.pmd.PmdPublisher/#{k}").text, k end end end
Version data entries
5 entries across 5 versions & 1 rubygems