- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for includeCategories (0.3 sec)
-
platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/junit/JUnitOptionsTest.groovy
def copyFromOverridesOldOptions() { given: def source = new JUnitOptions() .includeCategories("sourceIncludedCategory") .excludeCategories("sourceExcludedCategory") when: def target = new JUnitOptions() .includeCategories("targetIncludedCategory") .excludeCategories("targetExcludedCategory") target.copyFrom(source) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/junit/JUnitOptions.java
private static void replace(Set<String> target, Set<String> source) { target.clear(); target.addAll(source); } public JUnitOptions includeCategories(String... includeCategories) { this.includeCategories.addAll(Arrays.asList(includeCategories)); return this; } public JUnitOptions excludeCategories(String... excludeCategories) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junit/JUnitSpec.java
private final Set<String> includeCategories; 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;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/JUnitTestFrameworkTest.groovy
def "can configure JUnit with an Action"() { when: testTask.useJUnit({ JUnitOptions options -> options.includeCategories = ['ExcludedCategory'] as Set } as Action<JUnitOptions>) then: (testTask.options as JUnitOptions).includeCategories == ['ExcludedCategory'] as Set }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 1.4K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/testing/junit-categories/kotlin/build.gradle.kts
plugins { java } repositories { mavenCentral() } 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) -
platforms/documentation/docs/src/snippets/testing/junit-categories/groovy/build.gradle
plugins { id 'java' } 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) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4CategoriesOrTagsCoverageIntegrationTest.groovy
result.testClass("SomeTestClass").assertTestFailed("initializationError", startsWith("org.gradle.api.InvalidUserDataException: Can't load category class [org.gradle.CategoryA]")) where: type << ['includeCategories', 'excludeCategories'] } def "supports categories and null test class description"() { // Our custom runner class won't work with JUnit < 4.11
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 9.7K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4CategoriesNotSupportedIntegrationTest.groovy
${mavenCentralRepository()} dependencies { testImplementation "junit:junit:4.4" } test { useJUnit { includeCategories 'org.gradle.CategoryA' excludeCategories 'org.gradle.CategoryC' } } """ when: fails('test') then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4MultiVersionTest.groovy
""" } } @Override String getIncludeCategoryOrTagConfigurationElement() { return "includeCategories" } @Override String getExcludeCategoryOrTagConfigurationElement() { return "excludeCategories" } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitEnclosedRunnerIntegrationTest.groovy
} """.stripIndent() file('src/test/java/Fast.java') << 'public interface Fast {}' buildFile << ''' test { useJUnit { includeCategories 'Fast' } } ''' when: succeeds('test') then: new DefaultTestExecutionResult(testDirectory)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 4.4K bytes - Viewed (0)