Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for SubTest (0.2 sec)

  1. src/testing/panic_test.go

        panic_test.go:NNN: TestPanicHelper
    `,
    	}, {
    		desc:  "subtest panics",
    		flags: []string{"-test_panic_test=TestPanicHelper/1"},
    		want: `
    --- FAIL: TestPanicHelper (N.NNs)
        panic_test.go:NNN: TestPanicHelper
        --- FAIL: TestPanicHelper/1 (N.NNs)
            panic_test.go:NNN: TestPanicHelper/1
    `,
    	}, {
    		desc:  "subtest panics with cleanup",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:49:24 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestReportTaskIntegrationTest.groovy

            htmlReport.testClass("org.gradle.testing.SubTest").assertTestCount(4, 1, 0).assertTestPassed("passing") // onlySub is passing once and failing once
                .assertStdout(allOf(containsString('org.gradle.testing.SubTest#passing sub\n'),
                    containsString('org.gradle.testing.SubTest#passing super\n'),
                    containsString('org.gradle.testing.SubTest#onlySub sub\n'),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 16.6K bytes
    - Viewed (0)
  3. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildTaskExcludeIntegrationTest.groovy

                project(':sub') {
                    def subTest = tasks.register('test') {
                        doLast {
                             println 'sub test executed'
                        }
                    }
    
                    tasks.register('build') {
                        doLast {
                            println 'sub build executed'
                        }
                        dependsOn subTest
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 04 12:16:04 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. src/testing/match.go

    	skip      filterMatch
    	matchFunc func(pat, str string) (bool, error)
    
    	mu sync.Mutex
    
    	// subNames is used to deduplicate subtest names.
    	// Each key is the subtest name joined to the deduplicated name of the parent test.
    	// Each value is the count of the number of occurrences of the given subtest name
    	// already seen.
    	subNames map[string]int32
    }
    
    type filterMatch interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  5. src/testing/sub_test.go

    			})
    			t.Errorf("oh, and this too")
    		},
    	}, {
    		desc: "subtest calls fatal on parent",
    		ok:   false,
    		output: `
    --- FAIL: subtest calls fatal on parent (N.NNs)
        sub_test.go:NNN: first this
        sub_test.go:NNN: and now this!
        --- FAIL: subtest calls fatal on parent/#00 (N.NNs)
            testing.go:NNN: test executed panic(nil) or runtime.Goexit: subtest may have called FailNow on a parent test`,
    		maxPar: 1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
  6. src/testing/testing_test.go

    			}
    		}) {
    			t.Fatal("Sub test failure in a benchmark")
    		}
    	})
    }
    
    func TestTempDir(t *testing.T) {
    	testTempDir(t)
    	t.Run("InSubtest", testTempDir)
    	t.Run("test/subtest", testTempDir)
    	t.Run("test\\subtest", testTempDir)
    	t.Run("test:subtest", testTempDir)
    	t.Run("test/..", testTempDir)
    	t.Run("../test", testTempDir)
    	t.Run("test[]", testTempDir)
    	t.Run("test*", testTempDir)
    	t.Run("äöüéè", testTempDir)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. src/testing/match_test.go

    	{"#", "x/#"},
    	{"#", "x/##01"},
    
    	{"t", "x/t"},
    	{"t", "x/t#01"},
    	{"t", "x/t#02"},
    	{"t#00", "x/t#00"}, // Explicit "#00" doesn't conflict with the unsuffixed first subtest.
    
    	{"a#01", "x/a#01"},    // user has subtest with this name.
    	{"a", "x/a"},          // doesn't conflict with this name.
    	{"a", "x/a#02"},       // This string is claimed now, so resume
    	{"a", "x/a#03"},       // with counting.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:48:54 UTC 2022
    - 8K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitClassLevelFilteringIntegrationTest.groovy

            """
            file('src/test/java/SubClass.java') << """
                ${testFrameworkImports}
    
                public class SubClass extends SuperClass {
                    @Test
                    public void subTest() {
                    }
                }
            """
    
            when:
            succeeds('test', '--tests', 'SubClass.superTest')
    
            then:
            new DefaultTestExecutionResult(testDirectory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_json_interleaved.txt

    # Regression test for https://golang.org/issue/40657: output from the main test
    # function should be attributed correctly even if interleaved with the PAUSE
    # line for a new parallel subtest.
    
    [short] skip
    
    go test -json
    stdout '"Test":"TestWeirdTiming","Output":"[^"]* logging to outer again\\n"'
    
    -- go.mod --
    module example.com
    go 1.15
    -- main_test.go --
    package main
    
    import (
    	"testing"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 18 17:44:20 UTC 2020
    - 581 bytes
    - Viewed (0)
  10. pkg/test/framework/integration/framework_test.go

    	if len(tst.children) == 0 {
    		doWork()
    	} else {
    		for _, child := range tst.children {
    			subTest := t.NewSubTest(child.name)
    			if tst.runChildrenParallel {
    				subTest.RunParallel(child.runInternal)
    			} else {
    				subTest.Run(child.runInternal)
    			}
    		}
    	}
    	tst.runEnd = time.Now()
    }
    
    func (tst *test) timeRange() timeRange {
    	return timeRange{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top