Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 42 for someTest (0.15 sec)

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

                    testImplementation('org.junit.platform:junit-platform-launcher')
                }
            """
    
            and:
            testClass "SomeTest"
            file("src/test/java/ThrowingListener.java") << """
                import org.junit.platform.launcher.*;
                public class ThrowingListener implements TestExecutionListener {
                    @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/xctest/XCTestTestFrameworkIntegrationTest.groovy

            SwiftXCTestTestFrameworkBundle(String projectName) {
                super(projectName)
            }
    
            List<XCTestSourceFileElement> testSuites = [
                new XCTestSourceFileElement("SomeTest") {
                    List<XCTestCaseElement> testCases = [
                        testCase(failingTestCaseName, FAILING_TEST, true),
                        passingTestCase(passingTestCaseName)
                    ]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/ToolingApiUnsupportedBuildJvmCrossVersionSpec.groovy

            when:
            toolingApi.withConnection { ProjectConnection connection ->
                connection.newTestLauncher().withJvmTestClasses("SomeTest").run()
            }
    
            then:
            GradleConnectionException e = thrown()
            e.message.startsWith("Could not execute tests using ")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractIncrementalTestIntegrationTest.groovy

            when:
            // Change a test class
            file('src/test/java/Ok.java').text = """
                ${testFrameworkImports}
                public class Ok {
                    @Test
                    public void someTest() {
                    }
                }
            """.stripIndent()
    
            then:
            succeeds('test').assertTasksNotSkipped(':compileTestJava', ':testClasses', ':test')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoPluginMultiVersionIntegrationTest.groovy

        private void printMessage(String msg) {
            System.out.println(msg);
        }
    }
    """
            file("src/otherTest/java/ThingTest.java") << """
    public class ThingTest {
        @org.junit.Test public void someTest() { new Thing(); }
    }
    """
            buildFile << """
        testing.suites {
            otherTest(JvmTestSuite) {
                useJUnit()
                dependencies {
                    implementation project()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:19:29 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4SuitesIntegrationTest.groovy

            result.assertTestClassesExecuted('org.gradle.SomeTest1', 'org.gradle.SomeTest2', 'org.gradle.SomeSuite')
            result.testClass("org.gradle.SomeTest1").assertTestCount(1, 0, 0)
            result.testClass("org.gradle.SomeTest1").assertTestsExecuted("testOk1")
            result.testClass("org.gradle.SomeTest2").assertTestCount(1, 0, 0)
            result.testClass("org.gradle.SomeTest2").assertTestsExecuted("testOk2")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/ParallelTestExecutionIntegrationTest.groovy

            testIndices(testCount).each { idx ->
                file("src/$sourceSet/java/pkg/SomeTest_${idx}.java") << """
                    package pkg;
                    import org.junit.Test;
                    public class SomeTest_$idx {
                        @Test
                        public void test_$idx() {
                            ${blockingServer.callFromBuild("${sourceSet}_$idx")}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-shared/src/test/groovy/org/gradle/wrapper/DownloadTest.groovy

            def remoteFile = tmpDir.file('remoteFile') << 'sometext'
            def sourceUrl = remoteFile.toURI()
    
            when:
            def download = new Download(new Logger(true), "gradlew", "aVersion")
            download.download(sourceUrl, destination)
    
            then:
            destination.exists()
            destination.text == 'sometext'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/optimizing-performance/networking.adoc

    For example, setting the HTTP proxy host would be done with `System.setProperty('http.proxyHost', 'www.somehost.org')`.
    
    Alternatively, the properties can be <<build_environment.adoc#sec:gradle_configuration_properties,specified in `gradle.properties`>>.
    
    *Example 1:* Configuring an HTTP proxy using `gradle.properties`:
    ====
    ----
    systemProp.http.proxyHost=www.somehost.org
    systemProp.http.proxyPort=8080
    systemProp.http.proxyUser=userid
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. platforms/software/resources-gcs/src/test/groovy/org/gradle/internal/resource/transport/gcp/gcs/GcsClientTest.groovy

            then:
            def ex = thrown(ResourceException)
            ex.message.startsWith("Could not get resource 'https://somehost/file.txt'")
        }
    
        def "should include uri when upload fails"() {
            def gcsStorageClient = Mock(Storage)
            URI uri = new URI("https://somehost/file.txt")
            GcsClient gcsClient = new GcsClient(gcsStorageClient)
    
            gcsStorageClient.objects(*_) >> Mock(Storage.Objects) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top