Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasTestNGXmlResults (0.2 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGProducesOldReportsIntegrationTest.groovy

        reports.html.required = false
        useTestNG()
    }
    """
            when:
            executer.withTasks('test').runWithFailure().assertTestsFailed()
    
            then:
            !new TestNGExecutionResult(file(".")).hasTestNGXmlResults()
            new JUnitXmlTestExecutionResult(file(".")).hasJUnitXmlResults()
        }
    
        def "can generate the old xml reports"() {
            given:
            file("src/test/java/org/SomeTest.java") << """package org;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestNGExecutionResult.groovy

        TestNGExecutionResult(projectDir, String outputDirectory = DEFAULT_TESTNG_REPORT) {
            this.projectDir = projectDir
            this.outputDirectory = outputDirectory
        }
    
        boolean hasTestNGXmlResults() {
            xmlReportFile().isFile()
        }
    
        boolean hasJUnitResultsGeneratedByTestNG() {
            def dir = projectDir.file("$outputDirectory/junitreports")
            dir.isDirectory() && dir.list().length > 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top