Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for TestSpec (0.13 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/TestSpec.java

     *
     * @since 7.6
     */
    @Incubating
    public interface TestSpec {
    
        /**
         * Adds all tests declared in the target package to the test execution.
         * <p>
         * The effect is recursive, meaning that the tests defined in sub-packages will also be executed.
         *
         * @param pkg The target package.
         * @return this
         */
        TestSpec includePackage(String pkg);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PerformanceTestIdProvider.groovy

            if (methodName != null && testSpec != null) {
                if (testSpec.hasProperty('testId') && testSpec.testId == null) {
                    testSpec.testId = methodName
                } else if (testSpec.hasProperty('displayName') && testSpec.displayName == null) {
                    testSpec.displayName = methodName
                }
    
                if(testSpec.hasProperty('testClassName') && testSpec.testClassName == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultTestSpec.java

            this.patterns = patterns;
        }
    
        @Override
        public TestSpec includePackage(String pkg) {
            return includePackages(Collections.singletonList(pkg));
        }
    
        @Override
        public TestSpec includePackages(Collection<String> packages) {
            this.packages.addAll(packages);
            return this;
        }
    
        @Override
        public TestSpec includeClass(String cls) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultTestSpecs.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.tooling.internal.consumer;
    
    import org.gradle.tooling.TestSpec;
    import org.gradle.tooling.TestSpecs;
    
    import java.util.ArrayList;
    import java.util.List;
    
    public class DefaultTestSpecs implements TestSpecs {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/TestExecutionResultEvaluator.java

                    InternalTestSpec testSpec = (InternalTestSpec) taskSpec;
                    for (String cls : testSpec.getClasses()) {
                        requestDetails.append("\n").append(twoIndent()).append("Test class: ").append(cls).append(" in task " + taskSpec.getTaskPath());
                    }
                    for (Map.Entry<String, List<String>> methods : testSpec.getMethods().entrySet()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/TestExecutionBuildConfigurationAction.java

                    InternalTestSpec testSpec = (InternalTestSpec) taskSpec;
                    Set<AbstractTestTask> tasks = queryTestTasks(context, taskSpec.getTaskPath());
                    for (AbstractTestTask task : tasks) {
                        DefaultTestFilter filter = (DefaultTestFilter) task.getFilter();
                        for (String cls : testSpec.getClasses()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/TestSpecs.java

    @Incubating
    public interface TestSpecs {
    
        /**
         * Creates a new test selection for the target task.
         *
         * @param taskPath The target task.
         * @return A new test selection.
         */
        TestSpec forTaskPath(String taskPath);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitSpockIntegrationTest.groovy

                    }
    
                    void call() {
                       callable.call()
                    }
                }
            """
            file("src/test/groovy/TestSpec.groovy") << """
                import spock.lang.Specification
    
                class TestSpec extends Specification {
                    def testMethod() {
                        final callable = Mock(MockIt)
                        def caller = new Caller(callable)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/TestLauncher.java

         *
         * <p>
         * Note: These tests are ignored for target Gradle version earlier than 7.6.
         *
         * @param testSpec The action selecting the target tests.
         * @return this
         * @since 7.6
         */
        @Incubating
        TestLauncher withTestsFor(Action<TestSpecs> testSpec);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/AbstractCrossVersionPerformanceTest.groovy

                    buildContext
            )
            runner.workingDir = temporaryFolder.testDirectory
            runner.current = new UnderDevelopmentGradleDistribution(buildContext)
            performanceTestIdProvider.testSpec = runner
        }
    
        CrossVersionPerformanceTestRunner getRunner() {
            runner
        }
    
        void applyDevelocityPlugin() {
            runner.addBuildMutator { invocationSettings ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 14:54:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top