Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for includeTags (0.17 sec)

  1. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/junitplatform/JUnitPlatformOptions.java

         *
         * @see <a href="https://junit.org/junit5/docs/current/user-guide/#writing-tests-tagging-and-filtering">Tagging and Filtering</a>
         */
        public JUnitPlatformOptions includeTags(String... includeTags) {
            this.includeTags.addAll(Arrays.asList(includeTags));
            return this;
        }
    
        /**
         * The set of engines to exclude.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/junitplatform/JUnitPlatformOptionsTest.groovy

    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junitplatform/JUnitPlatformSpec.java

        private final Set<String> excludeEngines;
        private final Set<String> includeTags;
        private final Set<String> excludeTags;
        private final boolean isDryRun;
    
        public JUnitPlatformSpec(
            TestFilterSpec filter,
            Set<String> includeEngines,
            Set<String> excludeEngines,
            Set<String> includeTags,
            Set<String> excludeTags,
            boolean isDryRun
        ) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/test/impl/DefaultTestTaskFilters.java

        private final Set<String> includeTags;
        private final Set<String> excludeTags;
        private final Set<String> includeEngines;
        private final Set<String> excludeEngines;
    
        DefaultTestTaskFilters(
            Set<String> includePatterns,
            Set<String> commandLineIncludePatterns,
            Set<String> excludePatterns,
            Set<String> includeTags,
            Set<String> excludeTags,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 17 10:17:11 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/testing/junitplatform-tagging/kotlin/build.gradle.kts

        testRuntimeOnly("org.junit.platform:junit-platform-launcher")
    }
    
    // tag::test-tags[]
    tasks.withType<Test>().configureEach {
        useJUnitPlatform {
            includeTags("fast")
            excludeTags("slow")
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 369 bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/IntegrationTest.groovy

    /**
     * This annotation is a marker and guarantees all integration tests are tagged.
     *
     * When we use JUnit Platform `includeTags('SomeTag')`, all spock tests are excluded:
     * https://github.com/spockframework/spock/issues/1288 . As a workaround,
     * we tag all non-spock integration tests and use `includeTags(none() | SomeTag)` to make
     * sure spock engine tests are executed.
     */
    @Retention(RetentionPolicy.RUNTIME)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/Flaky.groovy

     *   tests annotated by this is handled by `JUnitPlatformOptions.includeTags/excludeTags`.
     * For JUnit 4 tests, because we run them in Vintage engine, we have to annotate the tests with `@Category(Flaky.class)` so it can be transparently
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/testing/junitplatform-tagging/groovy/build.gradle

        implementation 'org.junit.jupiter:junit-jupiter:5.7.1'
        testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
    }
    
    // tag::test-tags[]
    tasks.withType(Test).configureEach {
        useJUnitPlatform {
            includeTags 'fast'
            excludeTags 'slow'
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 368 bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/vintage/JUnitVintageMultiVersionTest.groovy

                """
            }
    
            @Override
            String getIncludeCategoryOrTagConfigurationElement() {
                return "includeTags"
            }
    
            @Override
            String getExcludeCategoryOrTagConfigurationElement() {
                return "excludeTags"
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/test/TestTaskPropertiesServiceIntegrationTest.groovy

                    filter {
                        includeTestsMatching('*Class')
                        excludeTestsMatching('exclude-pattern')
                    }
                    useJUnitPlatform {
                        includeTags('included-tag')
                        excludeTags('excluded-tag')
                        includeEngines('included-engine')
                        excludeEngines('excluded-engine')
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top