Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TEST_ENV_VAR (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top