Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for afterTest (0.25 sec)

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

                    void beforeTest(TestDescriptor test) { println "START [\$test] [\$test.name]" }
                    void afterTest(TestDescriptor test, TestResult result) { println "FINISH [\$test] [\$test.name] [\$result.resultType] [\$result.testCount] [\$result.exception]" }
                }
            """.stripIndent()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. src/net/http/alpn_test.go

    	"bufio"
    	"bytes"
    	"crypto/tls"
    	"crypto/x509"
    	"fmt"
    	"io"
    	. "net/http"
    	"net/http/httptest"
    	"strings"
    	"testing"
    )
    
    func TestNextProtoUpgrade(t *testing.T) {
    	setParallel(t)
    	defer afterTest(t)
    	ts := httptest.NewUnstartedServer(HandlerFunc(func(w ResponseWriter, r *Request) {
    		fmt.Fprintf(w, "path=%s,proto=", r.URL.Path)
    		if r.TLS != nil {
    			w.Write([]byte(r.TLS.NegotiatedProtocol))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 3K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGClassIntegrationTest.groovy

                        }
    
                        void beforeTest(TestDescriptor d) {
                            printEventInformation('$STARTED', d)
                        }
    
                        void afterTest(TestDescriptor d, TestResult result) {
                            printEventInformation('$FINISHED', d)
                        }
    
                        private void printEventInformation(String eventTypeDescription, TestDescriptor d) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/main/java/org/gradle/api/tasks/testing/AbstractTestTask.java

         *
         * @param closure The closure to call.
         */
        public void afterTest(Closure closure) {
            addDispatchAsTestListener("afterTest", closure);
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:49:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/jvm/AbstractConsoleJvmTestLoggingFunctionalTest.groovy

                test {
                    beforeTest { descriptor ->
                        logger.quiet 'Starting test: ' + descriptor.className + ' > ' + descriptor.name
                    }
                    afterTest { descriptor, result ->
                        logger.quiet 'Finishing test: ' + descriptor.className + ' > ' + descriptor.name
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 14:21:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/TestReportDataCollector.java

            currentTestMethods.put(testDescriptor, methodResult);
        }
    
        @Override
        public void afterTest(TestDescriptor testDescriptor, TestResult result) {
            String className = testDescriptor.getClassName();
            String classDisplayName = ((TestDescriptorInternal) testDescriptor).getClassDisplayName();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. platforms/software/testing-base/src/testFixtures/groovy/org/gradle/testing/AbstractTestFrameworkIntegrationTest.groovy

                    void beforeTest(TestDescriptor test) { println "START Test Case [\$test.className] [\$test.name]" }
                    void afterTest(TestDescriptor test, TestResult result) { println "FINISH Test Case [\$test.className] [\$test.name] [\$result.resultType] [\$result.testCount]" }
                }
            """
    
            when:
            succeeds "check"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  8. src/net/http/client_test.go

    }
    
    func (t *recordingTransport) RoundTrip(req *Request) (resp *Response, err error) {
    	t.req = req
    	return nil, errors.New("dummy impl")
    }
    
    func TestGetRequestFormat(t *testing.T) {
    	setParallel(t)
    	defer afterTest(t)
    	tr := &recordingTransport{}
    	client := &Client{Transport: tr}
    	url := "http://dummy.faketld/"
    	client.Get(url) // Note: doesn't hit network
    	if tr.req.Method != "GET" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  9. src/net/http/serve_test.go

    		Handler:  ht.handler,
    	}
    	go srv.Serve(ln)
    	<-conn.closec
    	return output.String()
    }
    
    func TestConsumingBodyOnNextConn(t *testing.T) {
    	t.Parallel()
    	defer afterTest(t)
    	conn := new(testConn)
    	for i := 0; i < 2; i++ {
    		conn.readBuf.Write([]byte(
    			"POST / HTTP/1.1\r\n" +
    				"Host: test\r\n" +
    				"Content-Length: 11\r\n" +
    				"\r\n" +
    				"foo=1&bar=1"))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGIntegrationTest.groovy

                    void afterSuite(TestDescriptor suite, TestResult result) { println "FINISH [$suite] [$suite.name]" }
                    void beforeTest(TestDescriptor test) { println "START [$test] [$test.name]" }
                    void afterTest(TestDescriptor test, TestResult result) { println "FINISH [$test] [$test.name] [$result.exception]" }
                }
            '''.stripIndent()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top