File tree Expand file tree Collapse file tree
main/groovy/javaposse/jobdsl/dsl/helpers/publisher
test/groovy/javaposse/jobdsl/dsl/helpers/publisher Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,6 +147,16 @@ class ArchiveXUnitContext extends AbstractContext {
147147 addResultFile(' NUnitJunitHudsonTestType' , resultFileClosure)
148148 }
149149
150+ /**
151+ * Adds a NUnit3 report.
152+ *
153+ * @since 1.104
154+ */
155+ @RequiresPlugin (id = ' xunit' , minimumVersion = ' 1.104' )
156+ void nUnit3 (@DslContext (ArchiveXUnitResultFileContext ) Closure resultFileClosure ) {
157+ addResultFile(' NUnit3TestType' , resultFileClosure)
158+ }
159+
150160 /**
151161 * Adds an PHPUnit report.
152162 */
Original file line number Diff line number Diff line change @@ -601,6 +601,7 @@ class PublisherContextSpec extends Specification {
601601 ' msTest' | ' MSTestJunitHudsonTestType'
602602 ' mbUnit' | ' MbUnitType'
603603 ' nUnit' | ' NUnitJunitHudsonTestType'
604+ ' nUnit3' | ' NUnit3TestType'
604605 ' phpUnit' | ' PHPUnitJunitHudsonTestType'
605606 ' qTestLib' | ' QTestLibType'
606607 ' unitTest' | ' UnitTestJunitHudsonTestType'
You can’t perform that action at this time.
0 commit comments