Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for JUnitOptions (0.44 sec)

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

     * The JUnit specific test options.
     */
    public class JUnitOptions extends TestFrameworkOptions {
        private Set<String> includeCategories = new LinkedHashSet<String>();
    
        private Set<String> excludeCategories = new LinkedHashSet<String>();
    
        /**
         * Copies the options from the source options into the current one.
         * @since 8.0
         */
        public void copyFrom(JUnitOptions other) {
    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/main/java/org/gradle/api/internal/tasks/testing/junit/JUnitTestFramework.java

            this(filter, useImplementationDependencies, new JUnitOptions(), testTask.getTemporaryDirFactory(), testTask.getDryRun());
        }
    
        private JUnitTestFramework(DefaultTestFilter filter, boolean useImplementationDependencies, JUnitOptions options, Factory<File> testTaskTemporaryDir, Provider<Boolean> dryRun) {
            this.filter = filter;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. 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)
  4. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/junit/JUnitOptionsTest.groovy

    class JUnitOptionsTest extends Specification {
    
        def copyFromOverridesOldOptions() {
            given:
            def source = new JUnitOptions()
                .includeCategories("sourceIncludedCategory")
                .excludeCategories("sourceExcludedCategory")
    
            when:
            def target = new JUnitOptions()
                .includeCategories("targetIncludedCategory")
                .excludeCategories("targetExcludedCategory")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/Test.java

            if (frameworkOptions == null) {
                return true;
            }
    
            if (JUnitOptions.class.isAssignableFrom(frameworkOptions.getClass())) {
                JUnitOptions junitOptions = (JUnitOptions) frameworkOptions;
                return junitOptions.getIncludeCategories().isEmpty()
                    && junitOptions.getExcludeCategories().isEmpty();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestOptionsIntegrationSpec.groovy

            test {
               useJUnit()
               options {
                   includeCategories 'fast'
               }
               useJUnit()
            }
    
            assert test.options instanceof JUnitOptions
            """.stripMargin()
    
            expect:
            succeeds "help"
        }
        // endregion stand-alone test tasks
    
        @Issue("https://github.com/gradle/gradle/issues/24331")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/jvm/java_testing.adoc

    link:{groovyDslPath}/org.gradle.api.tasks.testing.Test.html[Test] task has many generic configuration options as well as several framework-specific ones that you can find described in link:{javadocPath}/org/gradle/api/tasks/testing/junit/JUnitOptions.html[JUnitOptions], link:{javadocPath}/org/gradle/api/tasks/testing/junitplatform/JUnitPlatformOptions.html[JUnitPlatformOptions] and link:{javadocPath}/org/gradle/api/tasks/testing/testng/TestNGOptions.html[TestNGOptions]. We cover a significant number...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 16:24:12 UTC 2024
    - 53.1K bytes
    - Viewed (0)
  8. testing/architecture-test/src/changes/archunit-store/public-api-mutable-properties.txt

    Method <org.gradle.api.tasks.testing.junit.JUnitOptions.getExcludeCategories()> does not have raw return type assignable to org.gradle.api.provider.Property in (JUnitOptions.java:0)
    Method <org.gradle.api.tasks.testing.junit.JUnitOptions.getIncludeCategories()> does not have raw return type assignable to org.gradle.api.provider.Property in (JUnitOptions.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 22:42:49 UTC 2024
    - 160.5K bytes
    - Viewed (0)
Back to top