Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for fastTest (0.28 sec)

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

        @Issue('https://github.com/gradle/gradle/issues/3189')
        @Requires(UnitTestPreconditions.Jdk8OrEarlier)
        def "can work with PowerMock"() {
            given:
            file('src/test/java/FastTest.java') << '''
                public interface FastTest {
                }
            '''.stripIndent()
            file('src/test/java/MyTest.java') << """
                ${testFrameworkImports}
                import org.junit.experimental.categories.Category;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testing/junitplatform-tagging/groovy/src/test/java/org/gradle/junitplatform/TagTest.java

    package org.gradle.junitplatform;
    
    import org.junit.jupiter.api.*;
    
    public class TagTest {
        @Fast
        @Test
        public void fastTest() {
        }
    
        @Tag("slow")
        @Test
        public void slowTest(){
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 210 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/testing/junitplatform-tagging/kotlin/src/test/java/org/gradle/junitplatform/TagTest.java

    package org.gradle.junitplatform;
    
    import org.junit.jupiter.api.*;
    
    public class TagTest {
        @Fast
        @Test
        public void fastTest() {
        }
    
        @Tag("slow")
        @Test
        public void slowTest(){
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 210 bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/jupiter/JUnitJupiterTestTaskIntegrationTest.groovy

            return """
                import org.junit.jupiter.api.*;
    
                public class $className {
                   @Test
                   @Tag("MyTest\$Fast")
                   public void fastTest() {
                      System.out.println(System.getProperty("java.version"));
                      Assertions.assertEquals(1,1);
                   }
    
                   @Test
                   @Tag("MyTest\$Slow")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4TestTaskIntegrationTest.groovy

                import org.junit.*;
                import org.junit.experimental.categories.Category;
    
                public class $className {
                   @Test
                   @Category(Fast.class)
                   public void fastTest() {
                      System.out.println(System.getProperty("java.version"));
                      Assert.assertEquals(1,1);
                   }
    
                   @Test
                   @Category(Slow.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformSampleIntegrationTest.groovy

            when:
            succeeds('test')
    
            then:
            new DefaultTestExecutionResult(sample.dir).testClass('org.gradle.junitplatform.TagTest').assertTestCount(1, 0, 0)
                .assertTestPassed('fastTest()')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/java/SamplesJavaTestingIntegrationTest.groovy

            and: "only the fast tests are run"
            def xmlResults = getTestResultsFileAsXml(dslDir, "org.gradle.junitplatform.TagTest")
            assertTestsRunCount(xmlResults, 1)
            assertTestRun(xmlResults, "fastTest()")
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    
        @UsesSample("testing/testng-groups")
        def "can filter tests by TestNG group with #dsl dsl"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  8. pkg/test/framework/components/istio/eastwest.go

    	exposeIstiodGatewayRev = path.Join(mcSamples, "expose-istiod-rev.yaml.tmpl")
    	exposeServicesGateway  = path.Join(mcSamples, "expose-services.yaml")
    	genGatewayScript       = path.Join(mcSamples, "gen-eastwest-gateway.sh")
    )
    
    // deployEastWestGateway will create a separate gateway deployment for cross-cluster discovery or cross-network services.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Nov 10 02:30:20 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/stdlib-java-extensions/src/test/groovy/org/gradle/internal/CastTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal
    
    import spock.lang.Specification
    
    import static Cast.cast
    
    class CastTest extends Specification {
    
        def "casting"() {
            given:
            def arg = "1"
    
            when:
            cast(Integer, arg)
    
            then:
            def e = thrown(ClassCastException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. samples/multicluster/gen-eastwest-gateway.sh

        echo "Must specify either --single-cluster or --network."
        exit 1
      fi
    fi
    
    # base
    IOP=$(cat <<EOF
    apiVersion: install.istio.io/v1alpha1
    kind: IstioOperator
    metadata:
      name: eastwest
    spec:
      revision: "${REVISION}"
      profile: empty
      components:
        ingressGateways:
          - name: istio-eastwestgateway
            label:
              istio: eastwestgateway
              app: istio-eastwestgateway
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Sep 04 02:52:25 UTC 2021
    - 3K bytes
    - Viewed (0)
Back to top