Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TEST_ENV_VAR (0.12 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/process/internal/RemoteProcess.java

        public void execute(WorkerProcessContext workerProcessContext) {
            // Check environment
            assertThat(System.getProperty("test.system.property"), equalTo("value"));
            assertThat(System.getenv().get("TEST_ENV_VAR"), equalTo("value"));
    
            // Check ClassLoaders
            ClassLoader antClassLoader = Project.class.getClassLoader();
            ClassLoader thisClassLoader = getClass().getClassLoader();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 14 01:36:23 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGIntegrationTest.groovy

            given:
            buildFile << """
                test {
                    systemProperties.testSysProperty = 'value'
                    systemProperties.testDir = projectDir
                    environment.TEST_ENV_VAR = 'value'
                }
            """.stripIndent()
            file('src/test/java/org/gradle/OkTest.java') << """
                package org.gradle;
    
                import static org.testng.Assert.*;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformEnvironmentIntegrationTest.groovy

                    systemProperties.testSysProperty = 'value'
                    systemProperties.projectDir = projectDir
                    environment.TEST_ENV_VAR = 'value'
                    testLogging.showStandardStreams = true
                }
            """
        }
    
        def "should prompt user to add dependencies when they are not in test runtime classpath"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestExecutionIntegrationTest.groovy

                        // check sys properties
                        assertEquals("value", System.getProperty("testSysProperty"));
    
                        // check env vars
                        assertEquals("value", System.getenv("TEST_ENV_VAR"));
    
                        // check classloader and classpath
                        assertSame(ClassLoader.getSystemClassLoader(), getClass().getClassLoader());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/process/internal/WorkerProcessIntegrationTest.groovy

                builder.sharedPackages("org.apache.tools.ant")
                builder.javaCommand.systemProperty("test.system.property", "value")
                builder.javaCommand.environment("TEST_ENV_VAR", "value")
    
                builder.javaCommand.jvmArgs(jvmArgs)
    
                proc = builder.build()
                try {
                    proc.start()
                    assertFalse(startFails)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 13.3K bytes
    - Viewed (0)
Back to top