Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for FooTest (0.11 sec)

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

            then:
            def result = new DefaultTestExecutionResult(testDirectory)
    
            result.assertTestClassesExecuted("FooTest", "FooServerTest")
            result.testClass("FooTest").assertTestCount(1, 0, 0);
            result.testClass("FooTest").assertTestOutcomes(passedTestOutcome, "testFoo")
            result.testClass("FooServerTest").assertTestCount(1, 0, 0);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGSuiteIntegrationTest.groovy

        }
        test {
            useTestNG {
                systemProperty 'name', 'value'
            }
        }
    """
            file("src/test/java/FooTest.java") << """
                import org.testng.annotations.*;
    
                public class FooTest {
                    @Test public void foo() {
                      assert System.getProperty("name").equals("value");
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGSuiteInitialisationIntegrationTest.groovy

        @Issue("GRADLE-1710")
        def "reports suite fatal failure"() {
            TestNGCoverage.enableTestNG(buildFile, '6.3.1')
            file("src/test/java/FooTest.java") << """
                import org.testng.annotations.*;
    
                public class FooTest {
                    public FooTest() { throw new NullPointerException(); }
                    @Test public void foo() {}
                }
            """
    
            expect:
            fails("test")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-typed-test.h

    typedef testing::Types<char, int, unsigned int> MyTypes;
    TYPED_TEST_CASE(FooTest, MyTypes);
    
    // If the type list contains only one type, you can write that type
    // directly without Types<...>:
    //   TYPED_TEST_CASE(FooTest, int);
    
    // Then, use TYPED_TEST() instead of TEST_F() to define as many typed
    // tests for this test case as you want.
    TYPED_TEST(FooTest, DoesBlah) {
      // Inside a test, refer to TypeParam to get the type parameter.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-param-test.h.pump

    // these names:
    //
    //    * InstantiationName/FooTest.DoesBlah/0 for "meeny"
    //    * InstantiationName/FooTest.DoesBlah/1 for "miny"
    //    * InstantiationName/FooTest.DoesBlah/2 for "moe"
    //    * InstantiationName/FooTest.HasBlahBlah/0 for "meeny"
    //    * InstantiationName/FooTest.HasBlahBlah/1 for "miny"
    //    * InstantiationName/FooTest.HasBlahBlah/2 for "moe"
    //
    // You can use these names in --gtest_filter.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/Binary2JUnitXmlReportGeneratorSpec.groovy

            def fooTest = new TestClassResult(1, 'FooTest', 100)
                .add(new TestMethodResult(1, "foo"))
    
            def barTest = new TestClassResult(2, 'BarTest', 100)
                .add(new TestMethodResult(2, "bar"))
                .add(new TestMethodResult(3, "bar2"))
    
            resultsProvider.visitClasses(_) >> { Action action ->
                action.execute(fooTest)
                action.execute(barTest)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 19:07:01 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-typed-test.h

    typedef testing::Types<char, int, unsigned int> MyTypes;
    TYPED_TEST_CASE(FooTest, MyTypes);
    
    // If the type list contains only one type, you can write that type
    // directly without Types<...>:
    //   TYPED_TEST_CASE(FooTest, int);
    
    // Then, use TYPED_TEST() instead of TEST_F() to define as many typed
    // tests for this test case as you want.
    TYPED_TEST(FooTest, DoesBlah) {
      // Inside a test, refer to TypeParam to get the type parameter.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4ClassLevelFilteringIntegrationTest.groovy

            """.stripIndent()
    
            when:
            run("test", "--tests", "FooTest.pass")
    
            then:
            def result = new DefaultTestExecutionResult(testDirectory)
            result.assertTestClassesExecuted("FooTest")
            result.testClass("FooTest").assertTestsExecuted("other", "pass")
    
            when:
            fails("test", "--tests", "FooTest.ignored")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaToolchainUpToDateIntegrationTest.groovy

            def someJdk = AvailableJavaHomes.differentJdk
            buildscriptWithToolchain(someJdk)
    
            file("src/main/java/Foo.java") << "public class Foo {}"
            file("src/test/java/FooTest.java") << testClass("FooTest")
    
            when:
            runWithToolchainConfigured(someJdk)
            runWithToolchainConfigured(someJdk)
    
            then:
            outputContains("Task :compileJava UP-TO-DATE")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGDryRunFilteringIntegrationTest.groovy

                                }
                            }
                        }
                    }
                }
            """
    
            file("src/test/java/FooTest.java") << """
                ${testFrameworkImports}
                public class FooTest {
                    @Test public void foo() {
                        System.err.println("Run foo!");
                    }
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top