Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for mytext3 (0.23 sec)

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

                launcher.withTaskAndTestClasses(':secondTest',["example.MyTest2"])
            }
            then:
            assertTaskNotExecuted(":test")
            assertTaskExecuted(":secondTest")
            assertTestExecuted(className: "example.MyTest2", methodName: "bar", task: ":secondTest")
            assertTestNotExecuted(className: "example.MyTest")
        }
    
        def "can target specific test task and methods"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/BuildScanPluginSmokeTest.groovy

            then:
            scanRunner("-Dorg.gradle.unsafe.isolated-projects=true")
                .build().output.contains("Build scan written to")
    
            when:
            createTest(file("project1"), "MyTest1")
            createTest(file("project2"), "MyTest1")
    
            then:
            with(scanRunner("-Dorg.gradle.unsafe.isolated-projects=true")
                .build()) {
                output.contains("Build scan written to")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r27/TestLauncherCrossVersionSpec.groovy

                launcher.withJvmTestClasses("example.MyTest")
                launcher.withJvmTestMethods("example.MyTest", "foo")
            }
    
            then:
            assertTestExecuted(className: "example.MyTest", methodName: "foo", task: ":test")
            assertTestExecuted(className: "example.MyTest", methodName: "foo", task: ":secondTest")
            assertTestExecuted(className: "example.MyTest", methodName: "foo2", task: ":secondTest")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheToolingApiInvocationIntegrationTest.groovy

                println("script log statement")
            """
            file("src/test/java/my/MyTest.java") << """
                package my;
                import org.junit.Test;
                public class MyTest {
                    @Test public void test() {}
                }
            """
    
            when:
            runTestClasses("my.MyTest")
    
            then:
            outputContains("script log statement")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/FullExceptionFormatterTest.groovy

            exception.stackTrace = stacktrace
    
            expect:
            formatter.format(testDescriptor, [exception]) == '''\
        java.lang.Exception: ouch
            at org.ClassName1.methodName1(FileName1.java:11)
            at org.ClassName2.methodName2(FileName2.java:22)
            at ClassName$1$1.whatever(MyTest.java:22)
    '''
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGUpToDateCheckIntegrationTest.groovy

                }
            '''.stripIndent()
            file('suite.xml') << '''
                <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
                <suite name="MySuite">
                  <test name="MyTest">
                    <classes>
                      <class name="SomeTest" />
                    </classes>
                  </test>
                </suite>
            '''.stripIndent()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 18 12:30:10 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/TestLauncherDebugTestsCrossVersionTest.groovy

                ${mavenCentralRepository()}
                dependencies { ${testImplementationConfiguration} 'junit:junit:4.13' }
            """
            file('src/test/java/example/MyTest.java').text = """
                package example;
                public class MyTest {
                    @org.junit.Test public void foo() throws Exception {
                         org.junit.Assert.assertEquals(1, 1);
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r60/TestOutputCrossVersionSpec.groovy

                dependencies.${testImplementationConfiguration} 'junit:junit:4.13'
                test.ignoreFailures = true
            """
            file("src/test/java/example/MyTest.java") << """
                package example;
                public class MyTest {
                    @org.junit.Test public void works() throws Exception {
                        System.out.print("out1");
                        System.err.print("err1");
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. pkg/test/framework/suite_test.go

    		{
    			caller:   "/home/me/go/src/istio.io/istio/some/path/mytest.go",
    			expected: "some_path",
    		},
    		{
    			caller:   "/home/me/go/src/istio.io/istio.io/some/path/mytest.go",
    			expected: "some_path",
    		},
    		{
    			caller:   "/home/me/go/src/istio.io/istio/tests/integration/some/path/mytest.go",
    			expected: "some_path",
    		},
    		{
    			caller:   "/work/some/path/mytest.go",
    			expected: "some_path",
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyIntegrationTest.groovy

                    output = layout.buildDirectory.dir("producer")
                }
    
                def myExt = extensions.create("myExt", MyExt)
                myExt.artifactDir = producer.flatMap { it.output }
    
                tasks.register("consumer", Consumer) {
                   fileNames = myExt.artifactDir.map {
                      it.asFileTree.collect { it.absolutePath }
                   }.orElse([ "else" ])
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top