Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for JUnitPlatformOptions (0.28 sec)

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

         */
        public JUnitPlatformOptions includeTags(String... includeTags) {
            this.includeTags.addAll(Arrays.asList(includeTags));
            return this;
        }
    
        /**
         * The set of engines to exclude.
         *
         * @see <a href="https://junit.org/junit5/docs/current/user-guide/#launcher-api-engines-custom">Test Engine</a>
         */
        public JUnitPlatformOptions excludeEngines(String... excludeEngines) {
    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/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/test/impl/DefaultTestTaskPropertiesService.java

                filter.getExcludePatterns(),
                getOrEmpty(options, JUnitPlatformOptions::getIncludeTags),
                getOrEmpty(options, JUnitPlatformOptions::getExcludeTags),
                getOrEmpty(options, JUnitPlatformOptions::getIncludeEngines),
                getOrEmpty(options, JUnitPlatformOptions::getExcludeEngines)
            );
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/junitplatform/JUnitPlatformTestFramework.java

            this(filter, useImplementationDependencies, new JUnitPlatformOptions(), dryRun);
        }
    
        private JUnitPlatformTestFramework(DefaultTestFilter filter, boolean useImplementationDependencies, JUnitPlatformOptions options, Provider<Boolean> dryRun) {
            this.filter = filter;
            this.useImplementationDependencies = useImplementationDependencies;
            this.options = options;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/junitplatform/JUnitPlatformOptionsTest.groovy

        def copyFromOverridesOldOptions() {
            given:
            def source = new JUnitPlatformOptions()
                .includeEngines("sourceIncludedCategory")
                .excludeEngines("sourceExcludedCategory")
                .includeTags("sourceIncludedTag")
                .excludeTags("sourceExcludedTag")
    
            when:
            def target = new JUnitPlatformOptions()
                .includeEngines("targetIncludedCategory")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. 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)
  6. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/Test.java

                    && junitOptions.getExcludeCategories().isEmpty();
            } else if (JUnitPlatformOptions.class.isAssignableFrom(frameworkOptions.getClass())) {
                JUnitPlatformOptions junitPlatformOptions = (JUnitPlatformOptions) frameworkOptions;
                return junitPlatformOptions.getIncludeTags().isEmpty()
                    && junitPlatformOptions.getExcludeTags().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)
  7. build-logic/integration-testing/src/main/kotlin/gradlebuild.integration-tests.gradle.kts

        includeSpockAnnotation("org.gradle.integtests.fixtures.compatibility.MultiVersionTestCategory")
        (options as JUnitPlatformOptions).includeEngines("spock")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 21 22:31:45 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. build-logic/integration-testing/src/main/kotlin/gradlebuild.cross-version-tests.gradle.kts

                // discard existing options configuration and add a deprecation warning.  Just set the existing options.
                (this.testFramework.options as JUnitPlatformOptions).includeEngines("cross-version-test-engine")
            }
            if (executer == defaultExecuter) {
                // The test task with the default executer runs with 'check'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts

        when (project.flakyTestStrategy) {
            FlakyTestStrategy.INCLUDE -> {}
            FlakyTestStrategy.EXCLUDE -> {
                excludeSpockAnnotation("org.gradle.test.fixtures.Flaky")
                (options as JUnitPlatformOptions).excludeTags("org.gradle.test.fixtures.Flaky")
            }
            FlakyTestStrategy.ONLY -> {
                // Note there is an issue: https://github.com/spockframework/spock/issues/1288
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 07:43:28 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestOptionsIntegrationSpec.groovy

               useJUnit()
               useJUnitPlatform()
               options {
                   includeTags 'fast'
               }
            }
    
            assert integTest.options instanceof JUnitPlatformOptions
            """.stripMargin()
    
            expect:
            succeeds "help"
        }
    
        def "can set built-in test task to use the same framework it was using after setting options"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top