Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for failingTest (0.21 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformParameterizedTestIntegrationTest.groovy

            given:
            server.start()
            buildFile << """
                test { maxParallelForks = 2 }
            """
            testClass("FailingTest")
                .testMethod('failingTest')
                    .shouldFail()
                    .customContent(server.callFromBuild("failingTest"))
            testClass("WithParameterizedTest")
                .parameterizedMethod('enabledParameterizedTest')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGXmlResultAndHtmlReportIntegrationTest.groovy

            System.out.println("out" );
        }
        @Test public void passing2() {}
    }
    """
            file("src/test/java/org/FailingTest.java") << """package org;
    import org.testng.annotations.*;
    import static org.testng.Assert.*;
    
    public class FailingTest {
        @Test public void failing() {
            System.err.println("err");
            fail();
        }
        @Test public void failing2() {
            fail();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 25 21:27:42 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r54/KotlinBuildScriptModelCrossVersionSpec.groovy

                    dependencies {
                        testImplementation("junit:junit:4.13")
                    }
                """
            }
            withFile("buildSrc/src/test/kotlin/FailingTest.kt", """
                class FailingTest {
                    @org.junit.Test fun test() {
                        throw Exception("BOOM")
                    }
                }
            """)
            withDefaultSettings()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 08:52:51 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestFailureProgressEventCrossVersionTest.groovy

                    testImplementation 'junit:junit:4.13'
                }
            """
            file('src/test/java/FailingTest.java') << '''
                import org.junit.ComparisonFailure;
                import org.junit.Test;
                import static org.junit.Assert.*;
    
                public class FailingTest {
    
                    @Test
                    public void pass() {
                    }
    
                    @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 22.1K bytes
    - Viewed (0)
  5. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/googletest/GoogleTestSamplesIntegrationTest.groovy

            passingResults.suiteNames == ['OperatorTests']
            passingResults.suites['OperatorTests'].passingTests == ['test_minus', 'test_plus']
            passingResults.suites['OperatorTests'].failingTests == []
            passingResults.checkTestCases(2, 2, 0)
    
            when:
            sample googleTest
            fails "runOperatorsTestFailingGoogleTestExe"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/xctest/XCTestTestFrameworkIntegrationTest.groovy

            List<XCTestSourceFileElement> testSuites = [
                new XCTestSourceFileElement("SomeTest") {
                    List<XCTestCaseElement> testCases = [
                        testCase(failingTestCaseName, FAILING_TEST, true),
                        passingTestCase(passingTestCaseName)
                    ]
                }.withImport(libcModuleName),
    
                new XCTestSourceFileElement("SomeOtherTest") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cunit/CUnitSamplesIntegrationTest.groovy

            passingResults.suiteNames == ['operator tests']
            passingResults.suites['operator tests'].passingTests == ['test_plus', 'test_minus']
            passingResults.suites['operator tests'].failingTests == []
            passingResults.checkTestCases(2, 2, 0)
            passingResults.checkAssertions(6, 6, 0)
    
            when:
            sample cunit
            fails "runOperatorsTestFailingCUnitExe"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cunit/CUnitIntegrationTest.groovy

            testResults.suiteNames == ['hello test']
            testResults.suites['hello test'].passingTests == ['test_sum']
            testResults.suites['hello test'].failingTests == []
            testResults.checkTestCases(1, 1, 0)
            testResults.checkAssertions(3, 3, 0)
        }
    
        @ToBeFixedForConfigurationCache
        def "assemble does not build or run tests"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 17K bytes
    - Viewed (0)
  9. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/googletest/GoogleTestIntegrationTest.groovy

            testResults.suiteNames == ['HelloTest']
            testResults.suites['HelloTest'].passingTests == ['test_sum']
            testResults.suites['HelloTest'].failingTests == []
            testResults.checkTestCases(1, 1, 0)
        }
    
        @ToBeFixedForConfigurationCache
        def "assemble does not build or run tests"() {
            given:
            useConventionalSourceLocations()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.1K bytes
    - Viewed (0)
Back to top