Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 4,880 for failf (0.18 sec)

  1. 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)
  2. 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)
  3. test/fixedbugs/issue42876.go

    // license that can be found in the LICENSE file.
    
    package main
    
    var x = [4]int32{-0x7fffffff, 0x7fffffff, 2, 4}
    
    func main() {
    	if x[0] > x[1] {
    		panic("fail 1")
    	}
    	if x[2]&x[3] < 0 {
    		panic("fail 2") // Fails here
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 01 22:59:34 UTC 2020
    - 341 bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestVerificationFailureHandlingIntegrationTest.groovy

                package example;
    
                import org.junit.jupiter.api.Test;
    
                import static org.junit.jupiter.api.Assertions.fail;
    
                public class UnitTestWithVerificationFailure {
                    @Test
                    public void unitTest() {
                        fail("intentional verification failure");
                    }
                }
            '''
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGFailurePolicyIntegrationTest.groovy

                        }
                    }
                }
            """
        }
    
        def "skips tests after a config method failure by default"() {
            expect:
            fails "test"
    
            and:
            testResults.assertConfigMethodFailed("fail")
            testResults.assertTestSkipped("someTest")
        }
    
        def "can be configured to continue executing tests after a config method failure"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_match_no_subtests_failure.txt

    # Matches no subtests, but parent test still fails
    ! go test -run TestThatFails/ThisWillNotMatch standalone_fail_sub_test.go
    ! stdout '^ok.*\[no tests to run\]'
    ! stderr '^ok.*\[no tests to run\]'
    stdout 'FAIL'
    
    -- standalone_fail_sub_test.go --
    package standalone_fail_sub_test
    
    import "testing"
    
    func TestThatFails(t *testing.T) {
    	t.Run("Sub", func(t *testing.T) {})
    	t.Fail()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 20:48:08 UTC 2020
    - 381 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_exit.txt

    ! stdout TestNotListed
    
    # Running the test directly still fails, if we pass the flag.
    go test -c -o ./zero.exe ./zero
    ! exec ./zero.exe -test.paniconexit0
    
    # Using -json doesn't affect the exit status.
    ! go test -json ./zero
    ! stdout '"Output":"ok'
    ! stdout 'exit status'
    stdout 'panic'
    stdout '"Output":"FAIL'
    
    # Running the test via test2json also fails.
    ! go tool test2json ./zero.exe -test.v -test.paniconexit0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 14 20:38:03 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. platforms/core-execution/build-cache-spi/src/main/java/org/gradle/caching/BuildCacheService.java

         * @throws BuildCacheException if the cache fails to store a cache entry for the given key
         */
        void store(BuildCacheKey key, BuildCacheEntryWriter writer) throws BuildCacheException;
    
        /**
         * Clean up any resources held by the cache once it's not used anymore.
         *
         * @throws IOException if the cache fails to close cleanly.
         */
        @Override
        void close() throws IOException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:59:40 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top