Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,725 for fail2 (0.07 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r27/TestLauncherCrossVersionSpec.groovy

        Failed tests:
            Test example.MyFailingTest#fail (Task: :secondTest)
            Test example.MyFailingTest#fail2 (Task: :secondTest)
            Test example.MyFailingTest#fail (Task: :test)
            Test example.MyFailingTest#fail2 (Task: :test)"""
    
            when:
            launchTests { TestLauncher testLauncher ->
                testLauncher.withJvmTestMethods("example.MyFailingTest", "fail")
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGXmlResultAndHtmlReportIntegrationTest.groovy

            System.out.println("out.fail");
            System.err.println("err.fail");
            fail("failing!");
        }
        @Test public void passing2() {
            System.out.println("out.pass2");
            System.err.println("err.pass2");
        }
        @Test public void failing2() {
            System.out.println("out.fail2");
            System.err.println("err.fail2");
            fail("failing2!");
        }
    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. src/cmd/compile/internal/ssa/op.go

    // boundsABI determines which register arguments a bounds check call should use. For an [a:b:c] slice, we do:
    //
    //	CMPQ c, cap
    //	JA   fail1
    //	CMPQ b, c
    //	JA   fail2
    //	CMPQ a, b
    //	JA   fail3
    //
    // fail1: CALL panicSlice3Acap (c, cap)
    // fail2: CALL panicSlice3B (b, c)
    // fail3: CALL panicSlice3C (a, b)
    //
    // When we register allocate that code, we want the same register to be used for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 15:29:10 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/TestLauncherSpec.groovy

                package example;
                public class MyFailingTest {
                    @org.junit.Test public void fail() throws Exception {
                         org.junit.Assert.assertEquals(1, 2);
                    }
    
                    @org.junit.Test public void fail2() throws Exception {
                         org.junit.Assert.assertEquals(1, 2);
                    }
                }"""
    
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 08:42:44 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

            }
    """
    
            when:
            fails "fail"
    
            then:
            failure.assertHasCause('Could not create an instance of type Thing.')
            failure.assertHasCause('Too many parameters provided for constructor for type Thing. Expected 0, received 1.')
        }
    
        def "object creation fails with ObjectInstantiationException when construction parameters provided for interface"() {
            given:
            buildFile """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyUnresolvedModuleIntegrationTest.groovy

                        }
    
                        // Try to resolve configuration "fail" - this fails due to the repository being disabled, and the original cause is also printed underneath
                        configurations.fail.files
                    }
                }
            """
    
            when:
            moduleA.pom.expectGetBlocking()
            fails('resolve', '--max-workers=1')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 11:51:18 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/reproducibility/FailOnDynamicVersionsResolveIntegrationTest.groovy

                }
                'org:test:1.0' {
                    expectGetMetadata()
                }
            }
            fails ':checkDeps'
    
            then:
            failure.assertHasCause("Could not resolve org:test:1.+: Resolution strategy disallows usage of dynamic versions")
        }
    
        def "fails to resolve a transitive dependency which uses a dynamic version"() {
            buildFile << """
                dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFlowScopeIntegrationTest.groovy

            when: 'task fails'
            buildFile '''
                tasks.register('fail') {
                    doLast { assert false }
                }
            '''
            configurationCacheFails 'fail'
    
            then: 'flow action reacts to build failure'
            outputContains '(red)'
            configCache.assertStateStored()
    
            when: 'task from cache fails'
            configurationCacheFails 'fail'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestFailureIntegrationTest.groovy

        def "reports and breaks build when tests fail"() {
            given:
            file('src/test/java/org/gradle/BrokenAfter.java') << """
                package org.gradle;
    
                ${testFrameworkImports}
    
                public class BrokenAfter {
                    ${afterTestAnnotation}
                    public void broken() {
                        fail("failed");
                    }
    
                    @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 18K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fuzz.txt

    # Test that running a fuzz target that returns without failing or calling
    # f.Fuzz fails and causes a non-zero exit status.
    ! go test noop_fuzz_test.go
    ! stdout ^ok
    stdout FAIL
    
    # Test that fuzzing a fuzz target that returns without failing or calling
    # f.Fuzz fails and causes a non-zero exit status.
    ! go test -fuzz=Fuzz -fuzztime=1x noop_fuzz_test.go
    ! stdout ^ok
    stdout FAIL
    
    # Test that calling f.Error in a fuzz target causes a non-zero exit status.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 10.2K bytes
    - Viewed (0)
Back to top