Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for OtherTest (0.18 sec)

  1. platforms/software/testing-base/src/integTest/resources/org/gradle/testing/TestExecutionBuildOperationsIntegrationTest/emitsBuildOperationsForJUnitTests/src/test/java/org/gradle/OtherTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle;
    
    import org.junit.Assert;
    
    public class OtherTest {
    
        @org.junit.Test
        public void otherOk() {
            System.out.println("sys out from ok test method");
            System.err.println("sys err from ok test method");
        }
    
        @org.junit.Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 944 bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestFilteringIntegrationTest.groovy

            "no options"     | ["test"]                                                 | ["Foo1Test", "Foo2Test", "BarTest", "OtherTest"] | ["bar", "pass1"]  | ["bar", "pass2"]  | ["bar"]          | ["bar", "pass3"]
            "pass and Other" | ["test", "--tests", "*.pass1", "--tests", "*OtherTest*"] | ["Foo1Test", "OtherTest"]                        | ["pass1"]         | []                | []               | ["bar", "pass3"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4TestListenerBuildOperationAdapterIntegrationTest.groovy

                        System.err.println("sys err from another test method");
                    }
                }
            """
            file('src/test/java/org/gradle/OtherTest.java') << """
                package org.gradle;
                import org.junit.Test;
                public class OtherTest {
                    @Test
                    public void ok() throws Exception {
                        System.out.println("This is other stdout");
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/jupiter/JUnitJupiterTestListenerBuildOperationAdapterIntegrationTest.groovy

                        System.err.println("sys err from another test method");
                    }
                }
            """
            file('src/test/java/org/gradle/OtherTest.java') << """
                package org.gradle;
                import org.junit.jupiter.api.Test;
                public class OtherTest {
                    @Test
                    public void ok() throws Exception {
                        System.out.println("This is other stdout");
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.3K 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/AbstractJvmFailFastIntegrationSpec.groovy

            gradleHandle.waitForFailure()
            def result = new DefaultTestExecutionResult(testDirectory)
            result.testClass('pkg.FailedTest').assertTestFailed('failTest', CoreMatchers.anything())
            result.testClass('pkg.OtherTest').assertTestPassed('passingTest')
    
            where:
            description        | taskList                   | buildConfig
            'default config'   | ['test']                   | ''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4SuitesIntegrationTest.groovy

                    }
                }
            """.stripIndent()
            file('src/test/java/org/gradle/OtherTest.java') << """
                package org.gradle;
    
                ${testFrameworkImports}
    
                public class OtherTest {
    
                    @Test
                    public void ok() throws Exception {
                        System.out.println("This is other stdout");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. platforms/software/testing-base/src/integTest/resources/org/gradle/testing/TestExecutionBuildOperationsIntegrationTest/emitsBuildOperationsForJUnitTests/build.gradle

    apply plugin: 'java'
    repositories { mavenCentral() }
    dependencies { testImplementation 'junit:junit:4.13'}
    
    test {
        ignoreFailures = true
        include '**/TestSuite.class'
        include '**/Test.class'
        exclude '**/OtherTest.class'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 237 bytes
    - Viewed (0)
  9. platforms/software/testing-base/src/integTest/groovy/org/gradle/testing/TestExecutionBuildOperationsContinuousIntegrationTest.groovy

            resources.maybeCopy('TestExecutionBuildOperationsIntegrationTest/emitsBuildOperationsForJUnitTests')
            succeeds("test")
    
            when:
            update(file("src/test/java/org/gradle/OtherTest.java"), file("src/test/java/org/gradle/OtherTest.java").text.replace("Assert.fail();", ""))
            waitForBuild()
            stopGradle()
            afterBuild()
    
            then: "test build operations are emitted in expected hierarchy"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/fixture/JvmBlockingTestClassGenerator.groovy

                    }
                }
            """.stripIndent()
        }
    
        void withNonfailingTest() {
            root.file('src/test/java/pkg/OtherTest.java') << """
                package pkg;
                $testFrameworkImports
                public class OtherTest {
                    @Test
                    public void passingTest() {
                        ${server.callFromBuild("$OTHER_RESOURCE")}
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top