Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for getDuration (0.25 sec)

  1. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/TestClassResult.java

        }
    
        public int getFailuresCount() {
            return failuresCount;
        }
    
        public int getSkippedCount() {
            return skippedCount;
        }
    
        public long getDuration() {
            long end = startTime;
            for (TestMethodResult m : methodResults) {
                if (end < m.getEndTime()) {
                    end = m.getEndTime();
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/report/TestResult.java

            if (ignored) {
                return ResultType.SKIPPED;
            }
            return failures.isEmpty() ? ResultType.SUCCESS : ResultType.FAILURE;
        }
    
        @Override
        public long getDuration() {
            return duration;
        }
    
        @Override
        public String getFormattedDuration() {
            return ignored ? "-" : super.getFormattedDuration();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/TestMethodResult.java

        }
    
        public List<TestFailure> getFailures() {
            return failures;
        }
    
        public TestResult.ResultType getResultType() {
            return resultType;
        }
    
        public long getDuration() {
            return duration;
        }
    
        public long getEndTime() {
            return endTime;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/testFixtures/groovy/org/gradle/api/internal/tasks/testing/BuildableTestResultsProvider.groovy

            }
    
            def stdout(String output) {
                outputEvents << new BuildableOutputEvent(0, new DefaultTestOutputEvent(StdOut, output))
            }
    
            @Override
            long getDuration() {
                this.duration
            }
        }
    
        static class BuildableTestMethodResult extends TestMethodResult {
    
            long duration
            List<TestFailure> failures = []
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/AssignImmutableWorkspaceStepConcurrencyTest.groovy

        def work = Stub(ImmutableUnitOfWork) {
            getWorkspaceProvider() >> immutableWorkspaceProvider
        }
        def originMetadata = Stub(OriginMetadata)
        def delegateResult = Stub(CachingResult) {
            getDuration() >> Duration.ofSeconds(1)
            getExecution() >> Try.successful(Stub(ExecutionEngine.Execution))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:46:25 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/CaptureOutputsAfterExecutionStep.java

            // As this is _roughly_ the amount of time that is avoided by reusing the outputs,
            // which is currently the _only_ thing this value is used for.
            Duration originExecutionTime = result.getDuration().plus(Duration.ofMillis(snapshotOutputDuration));
            HashCode buildCacheKey = ((BuildCacheKeyInternal) cacheKeyCalculatedState.getKey()).getHashCodeInternal();
            return new OriginMetadata(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/TestResultSerializer.java

            encoder.writeString(methodResult.getName());
            encoder.writeString(methodResult.getDisplayName());
            encoder.writeSmallInt(methodResult.getResultType().ordinal());
            encoder.writeSmallLong(methodResult.getDuration());
            encoder.writeLong(methodResult.getEndTime());
            encoder.writeSmallInt(methodResult.getFailures().size());
            for (TestFailure testFailure : methodResult.getFailures()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/report/DefaultTestReport.java

                        final TestResult testResult = model.addTest(classResult.getId(), classResult.getClassName(), classResult.getClassDisplayName(), collectedResult.getName(), collectedResult.getDisplayName(), collectedResult.getDuration());
                        if (collectedResult.getResultType() == SKIPPED) {
                            testResult.setIgnored();
                        } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 12:58:15 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/BuildCacheStep.java

                );
                return result;
            } catch (Exception storeFailure) {
                return new AfterExecutionResult(Result.failed(storeFailure, result.getDuration()), result.getAfterExecutionOutputState().orElse(null));
            }
        }
    
        /**
         * Stores the results of the given work in the build cache, unless storing was disabled for this execution or work was untracked.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 13:41:13 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/BuildCacheStepTest.groovy

            1 * execution.canStoreOutputsInCache() >> true
    
            then:
            interaction { outputStored { throw failure } }
    
    
            then:
            1 * delegateResult.getDuration() >> duration
            1 * delegateResult.getAfterExecutionOutputState() >> Optional.of(afterExecutionOutputState)
    
            then:
            0 * _
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:13:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top