Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for someTest (0.14 sec)

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

            file('src/test/java/SomeTest.java') << """
                package com.example;
                import org.gradle.BasePlatformTestCase;
                public class SomeTest extends BasePlatformTestCase {
                    public void testPass() { }
                }
            """
    
            when:
            succeeds("test", "--tests", "SomeTest")
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. platforms/software/testing-base/src/main/java/org/gradle/api/tasks/testing/TestFilter.java

     *          //specific test class, this can match 'SomeTest' class and corresponding method under any package
     *          includeTestsMatching "SomeTest"
     *          includeTestsMatching "SomeTest.someTestMethod*"
     *
     *          //specific test class
     *          includeTestsMatching "org.gradle.SomeTest"
     *
     *          //specific test class and method
     *          includeTestsMatching "org.gradle.SomeTest.someSpecificFeature"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/SuiteTimestampIntegrationTest.groovy

            """
    
            file("src/test/java/SomeTest.java") << """
    import org.junit.*;
    
    public class SomeTest {
        @Test public void foo() {
            System.out.println("foo");
        }
    }
    """
            when:
            run "test"
    
            then:
            new JUnitXmlTestExecutionResult(testDirectory).testClass("SomeTest").withResult { testClassNode ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGUpToDateCheckIntegrationTest.groovy

    import spock.lang.Issue
    
    class TestNGUpToDateCheckIntegrationTest extends AbstractIntegrationSpec {
    
        def setup() {
            executer.noExtraLogging()
            file('src/test/java/SomeTest.java') << '''
                public class SomeTest {
                    @org.testng.annotations.Test(groups = {"group to include"})
                    public void pass() {}
                }
            '''.stripIndent()
            file('suite.xml') << '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 18 12:30:10 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4CategoriesNotSupportedIntegrationTest.groovy

        def "test task fails if categories not supported"() {
            given:
            file('src/test/java/org/gradle/SomeTest.java') << """
                package org.gradle;
    
                import org.junit.Test;
    
                public class SomeTest {
                    @Test
                    public void ok() {
                    }
    
                    public void helpermethod() {
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4TestExecutionIntegrationTest.groovy

            """.stripIndent()
    
            and:
            file("src/test/java/SomeTest.java") << threadNameCheckTest("SomeTest")
            file("src/test/java/AnotherTest.java") << threadNameCheckTest("AnotherTest")
    
            then:
            succeeds "clean", "test"
    
            and:
            def result = new DefaultTestExecutionResult(testDirectory)
            result.testClass("SomeTest").assertTestPassed("checkThreadName")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGProducesOldReportsIntegrationTest.groovy

            new JUnitXmlTestExecutionResult(file(".")).hasJUnitXmlResults()
        }
    
        def "can generate the old xml reports"() {
            given:
            file("src/test/java/org/SomeTest.java") << """package org;
    import org.testng.annotations.*;
    
    public class SomeTest {
        @Test public void passing() {}
    }
    """
            def buildFile = file('build.gradle')
            buildFile << """
    apply plugin: 'java'
    ${mavenCentralRepository()}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGTestOutputListenerTest.groovy

        def "shows standard stream also for testNG"() {
            given:
            def test = file("src/test/java/SomeTest.java")
            test << """
                import org.testng.*;
                import org.testng.annotations.*;
    
                public class SomeTest {
                    @Test public void foo() {
                        System.out.println("output from foo");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4JUnitIntegrationTest.groovy

                dependencies {
                    ${testFrameworkDependencies}
                }
                test.${configureTestFramework}
            """.stripIndent()
            and:
            file("src/test/java/SomeTest.java") << """
                public class SomeTest extends org.junit.runner.Result {
                    @org.junit.Test
                    public void test() { }
                }
            """.stripIndent()
            then:
            succeeds "clean", "test"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/api/plugins/JvmTestSuitePluginIntegrationTest.groovy

            buildFile << """
                plugins {
                    id 'java'
                }
                """
    
            file("src/test/java/SomeTest.java") << """
                import org.junit.Test;
    
                public class SomeTest {
                    @Test public void foo() {}
                }
                """.stripIndent()
    
            expect:
            succeeds "outgoingVariants"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top