Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for excludeCategories (0.49 sec)

  1. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/junit/JUnitOptions.java

            this.includeCategories.addAll(Arrays.asList(includeCategories));
            return this;
        }
    
        public JUnitOptions excludeCategories(String... excludeCategories) {
            this.excludeCategories.addAll(Arrays.asList(excludeCategories));
            return this;
        }
    
        /**
         * The set of categories to run.
         */
        @Input
        public Set<String> getIncludeCategories() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/junit/JUnitOptionsTest.groovy

            given:
            def source = new JUnitOptions()
                .includeCategories("sourceIncludedCategory")
                .excludeCategories("sourceExcludedCategory")
    
            when:
            def target = new JUnitOptions()
                .includeCategories("targetIncludedCategory")
                .excludeCategories("targetExcludedCategory")
            target.copyFrom(source)
    
            then:
            with(target) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junit/JUnitSpec.java

        private final Set<String> excludeCategories;
        private final boolean isDryRun;
    
        public JUnitSpec(
            TestFilterSpec filter,
            Set<String> includeCategories,
            Set<String> excludeCategories,
            boolean isDryRun
        ) {
            this.filter = filter;
            this.includeCategories = includeCategories;
            this.excludeCategories = excludeCategories;
            this.isDryRun = isDryRun;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/testing/junit-categories/kotlin/build.gradle.kts

    }
    
    dependencies {
        testImplementation("junit:junit:4.13")
    }
    
    // tag::test-categories[]
    tasks.test {
        useJUnit {
            includeCategories("org.gradle.junit.CategoryA")
            excludeCategories("org.gradle.junit.CategoryB")
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 320 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/testing/junit-categories/groovy/build.gradle

    repositories {
        mavenCentral()
    }
    
    dependencies {
        testImplementation 'junit:junit:4.13'
    }
    
    // tag::test-categories[]
    test {
        useJUnit {
            includeCategories 'org.gradle.junit.CategoryA'
            excludeCategories 'org.gradle.junit.CategoryB'
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 316 bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4TestTaskIntegrationTest.groovy

            settingsFile << "rootProject.name = 'Sample'"
            buildFile << """apply plugin: 'java'
                test {
                    options {
                        excludeCategories = ["Slow"]
                    }
                    $configureTestFramework
                }
            """.stripIndent()
    
            expect:
            succeeds("test")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/JUnitOptionsIntegrationTest.groovy

                            useJUnit()
                            targets.all {
                                testTask.configure {
                                    options {
                                        excludeCategories "com.example.Exclude"
                                    }
                                }
                            }
                        }
                    }
                }
    
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4CategoriesNotSupportedIntegrationTest.groovy

                    testImplementation "junit:junit:4.4"
                }
    
                test {
                    useJUnit {
                        includeCategories 'org.gradle.CategoryA'
                        excludeCategories 'org.gradle.CategoryC'
                    }
                }
            """
    
            when:
            fails('test')
    
            then:
            def result = new DefaultTestExecutionResult(testDirectory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4MultiVersionTest.groovy

    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestReportTaskIntegrationTest.groovy

                def test = tasks.named('test', Test)
                test.configure {
                    ignoreFailures true
                    useJUnit {
                        excludeCategories 'org.gradle.testing.SuperClassTests'
                        excludeCategories 'org.gradle.testing.SubClassTests'
                    }
                }
    
                testing {
                    suites {
                        superTest(JvmTestSuite) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 16.6K bytes
    - Viewed (0)
Back to top