New report rendering with code blocks instead of tables

Previously we listed tests using markdown tables. Each test group had it's own table and textual preface saying how many tests were executed in what time.
This was completely reworked - now tests are listed inside code block. Grouping is achieved using simple indentation. Duration of individual tests is no longer shown - it produced too much "noise" in the report. Pass/Fail check-mark was also moved before name of test suite.
Behavior of "listTests" option was also changed - now if set to failed, it will list all tests, but only if suite is failed. Otherwise test listing is completely omitted.
Last change affects report trimming - if report is still too big after "listTests" is set to "failed" - it will trim report to fit max size and add informational message at the end.
This commit is contained in:
Michal Dorner 2021-03-31 21:49:53 +02:00
parent 96df6db61e
commit 690ec77880
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
13 changed files with 3292 additions and 1046 deletions

View file

@ -1,32 +1,28 @@
![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%204%20failed%2C%201%20skipped-critical) ![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%204%20failed%2C%201%20skipped-critical)
## <a id="user-content-r0" href="#r0">fixtures/dart-json.json</a> ## <a id="user-content-r0" href="#r0">fixtures/dart-json.json</a>
**6** tests were completed in **3.760s** with **1** passed, **4** failed and **1** skipped. **6** tests were completed in **4s** with **1** passed, **4** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time| |Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:| |:---|---:|---:|---:|---:|
|[test/main_test.dart](#r0s0)|1✔|3❌||74ms| |[test/main_test.dart](#r0s0)|1✔|3❌||74ms|
|[test/second_test.dart](#r0s1)||1❌|1✖|51ms| |[test/second_test.dart](#r0s1)||1❌|1✖|51ms|
### <a id="user-content-r0s0" href="#r0s0">test/main_test.dart</a> ### ❌ <a id="user-content-r0s0" href="#r0s0">test/main_test.dart</a>
**4** tests were completed in **74ms** with **1** passed, **3** failed and **0** skipped. ```
Test 1
**Test 1** ✔️ Passing test
|Result|Test|Time| Test 1 Test 1.1
|:---:|:---|---:| ❌ Failing test
|✔️|Passing test|36ms| Expected: <2>
Actual: <1>
**Test 1 Test 1.1**
|Result|Test|Time| ❌ Exception in target unit
|:---:|:---|---:| Exception: Some error
|❌|Failing test|20ms| Test 2
|❌|Exception in target unit|6ms| ❌ Exception in test
Exception: Some error
**Test 2** ```
|Result|Test|Time| ### ❌ <a id="user-content-r0s1" href="#r0s1">test/second_test.dart</a>
|:---:|:---|---:| ```
|❌|Exception in test|12ms| ❌ Timeout test
### <a id="user-content-r0s1" href="#r0s1">test/second_test.dart</a> TimeoutException after 0:00:00.000001: Test timed out after 0 seconds.
**2** tests were completed in **51ms** with **0** passed, **1** failed and **1** skipped. ✖️ Skipped test
```
|Result|Test|Time|
|:---:|:---|---:|
|❌|Timeout test|37ms|
|✖️|Skipped test|14ms|

View file

@ -1,18 +1,21 @@
![Tests failed](https://img.shields.io/badge/tests-3%20passed%2C%203%20failed%2C%201%20skipped-critical) ![Tests failed](https://img.shields.io/badge/tests-3%20passed%2C%203%20failed%2C%201%20skipped-critical)
## <a id="user-content-r0" href="#r0">fixtures/dotnet-trx.trx</a> ## <a id="user-content-r0" href="#r0">fixtures/dotnet-trx.trx</a>
**7** tests were completed in **1.061s** with **3** passed, **3** failed and **1** skipped. **7** tests were completed in **1s** with **3** passed, **3** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time| |Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:| |:---|---:|---:|---:|---:|
|[DotnetTests.XUnitTests.CalculatorTests](#r0s0)|3✔|3❌|1✖|110ms| |[DotnetTests.XUnitTests.CalculatorTests](#r0s0)|3✔|3❌|1✖|110ms|
### <a id="user-content-r0s0" href="#r0s0">DotnetTests.XUnitTests.CalculatorTests</a> ### ❌ <a id="user-content-r0s0" href="#r0s0">DotnetTests.XUnitTests.CalculatorTests</a>
**7** tests were completed in **110ms** with **3** passed, **3** failed and **1** skipped. ```
❌ Exception_In_TargetTest
|Result|Test|Time| System.DivideByZeroException : Attempted to divide by zero.
|:---:|:---|---:| ❌ Exception_In_Test
|❌|Exception_In_TargetTest|0ms| System.Exception : Test
|❌|Exception_In_Test|2ms| ❌ Failing_Test
|❌|Failing_Test|3ms| Assert.Equal() Failure
|✔️|Passing_Test|0ms| Expected: 3
|✔️|Passing_Test_With_Name|0ms| Actual: 2
|✖️|Skipped_Test|1ms| ✔️ Passing_Test
|✔️|Timeout_Test|102ms| ✔️ Passing_Test_With_Name
✖️ Skipped_Test
✔️ Timeout_Test
```

File diff suppressed because it is too large Load diff

View file

@ -1,32 +1,26 @@
![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%204%20failed%2C%201%20skipped-critical) ![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%204%20failed%2C%201%20skipped-critical)
## <a id="user-content-r0" href="#r0">fixtures/jest-junit.xml</a> ## <a id="user-content-r0" href="#r0">fixtures/jest-junit.xml</a>
**6** tests were completed in **1.360s** with **1** passed, **4** failed and **1** skipped. **6** tests were completed in **1s** with **1** passed, **4** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time| |Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:| |:---|---:|---:|---:|---:|
|[__tests__\main.test.js](#r0s0)|1✔|3❌||486ms| |[__tests__\main.test.js](#r0s0)|1✔|3❌||486ms|
|[__tests__\second.test.js](#r0s1)||1❌|1✖|82ms| |[__tests__\second.test.js](#r0s1)||1❌|1✖|82ms|
### <a id="user-content-r0s0" href="#r0s0">__tests__\main.test.js</a> ### ❌ <a id="user-content-r0s0" href="#r0s0">__tests__\main.test.js</a>
**4** tests were completed in **486ms** with **1** passed, **3** failed and **0** skipped. ```
Test 1
**Test 1** ✔️ Passing test
|Result|Test|Time| Test 1 Test 1.1
|:---:|:---|---:| ❌ Failing test
|✔️|Passing test|1ms| Error: expect(received).toBeTruthy()
❌ Exception in target unit
**Test 1 Test 1.1** Error: Some error
|Result|Test|Time| Test 2
|:---:|:---|---:| ❌ Exception in test
|❌|Failing test|2ms| Error: Some error
|❌|Exception in target unit|0ms| ```
### ❌ <a id="user-content-r0s1" href="#r0s1">__tests__\second.test.js</a>
**Test 2** ```
|Result|Test|Time| ❌ Timeout test
|:---:|:---|---:| : Timeout - Async callback was not invoked within the 1 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 1 ms timeout specified by jest.setTimeout.Error:
|❌|Exception in test|0ms| ✖️ Skipped test
### <a id="user-content-r0s1" href="#r0s1">__tests__\second.test.js</a> ```
**2** tests were completed in **82ms** with **0** passed, **1** failed and **1** skipped.
|Result|Test|Time|
|:---:|:---|---:|
|❌|Timeout test|4ms|
|✖️|Skipped test|0ms|

View file

@ -1,182 +1,182 @@
![Tests failed](https://img.shields.io/badge/tests-4207%20passed%2C%202%20failed%2C%2030%20skipped-critical) ![Tests failed](https://img.shields.io/badge/tests-4207%20passed%2C%202%20failed%2C%2030%20skipped-critical)
## <a id="user-content-r0" href="#r0">fixtures/external/jest/jest-test-results.xml</a> ## <a id="user-content-r0" href="#r0">fixtures/external/jest/jest-test-results.xml</a>
**4239** tests were completed in **165.872s** with **4207** passed, **2** failed and **30** skipped. **4239** tests were completed in **166s** with **4207** passed, **2** failed and **30** skipped.
|Test suite|Passed|Failed|Skipped|Time| |Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:| |:---|---:|---:|---:|---:|
|e2e/__tests__/asyncAndCallback.test.ts|1✔|||746ms| |e2e/__tests__/asyncAndCallback.test.ts|1✔|||746ms|
|e2e/__tests__/asyncRegenerator.test.ts|1✔|||4.127s| |e2e/__tests__/asyncRegenerator.test.ts|1✔|||4s|
|e2e/__tests__/autoClearMocks.test.ts|2✔|||1.681s| |e2e/__tests__/autoClearMocks.test.ts|2✔|||2s|
|e2e/__tests__/autoResetMocks.test.ts|2✔|||1.666s| |e2e/__tests__/autoResetMocks.test.ts|2✔|||2s|
|e2e/__tests__/autoRestoreMocks.test.ts|2✔|||1.797s| |e2e/__tests__/autoRestoreMocks.test.ts|2✔|||2s|
|e2e/__tests__/babelPluginJestHoist.test.ts|1✔|||6.249s| |e2e/__tests__/babelPluginJestHoist.test.ts|1✔|||6s|
|e2e/__tests__/badSourceMap.test.ts|1✔|||858ms| |e2e/__tests__/badSourceMap.test.ts|1✔|||858ms|
|e2e/__tests__/beforeAllFiltered.ts|1✔|||958ms| |e2e/__tests__/beforeAllFiltered.ts|1✔|||958ms|
|e2e/__tests__/beforeEachQueue.ts|1✔||1✖|55ms| |e2e/__tests__/beforeEachQueue.ts|1✔||1✖|55ms|
|e2e/__tests__/callDoneTwice.test.ts|1✔|||882ms| |e2e/__tests__/callDoneTwice.test.ts|1✔|||882ms|
|e2e/__tests__/chaiAssertionLibrary.ts|1✔|||1.902s| |e2e/__tests__/chaiAssertionLibrary.ts|1✔|||2s|
|e2e/__tests__/circularInequality.test.ts|1✔|||1.451s| |e2e/__tests__/circularInequality.test.ts|1✔|||1s|
|e2e/__tests__/circusConcurrentEach.test.ts|2✔|||1.591s| |e2e/__tests__/circusConcurrentEach.test.ts|2✔|||2s|
|e2e/__tests__/circusDeclarationErrors.test.ts|1✔|||869ms| |e2e/__tests__/circusDeclarationErrors.test.ts|1✔|||869ms|
|e2e/__tests__/clearCache.test.ts|2✔|||1.004s| |e2e/__tests__/clearCache.test.ts|2✔|||1s|
|e2e/__tests__/cliHandlesExactFilenames.test.ts|2✔|||1.230s| |e2e/__tests__/cliHandlesExactFilenames.test.ts|2✔|||1s|
|e2e/__tests__/compareDomNodes.test.ts|1✔|||1.407s| |e2e/__tests__/compareDomNodes.test.ts|1✔|||1s|
|e2e/__tests__/config.test.ts|6✔|||3.945s| |e2e/__tests__/config.test.ts|6✔|||4s|
|e2e/__tests__/console.test.ts|7✔|||8.072s| |e2e/__tests__/console.test.ts|7✔|||8s|
|e2e/__tests__/consoleAfterTeardown.test.ts|1✔|||1.341s| |e2e/__tests__/consoleAfterTeardown.test.ts|1✔|||1s|
|e2e/__tests__/consoleLogOutputWhenRunInBand.test.ts|1✔|||793ms| |e2e/__tests__/consoleLogOutputWhenRunInBand.test.ts|1✔|||793ms|
|e2e/__tests__/coverageHandlebars.test.ts|1✔|||1.873s| |e2e/__tests__/coverageHandlebars.test.ts|1✔|||2s|
|e2e/__tests__/coverageRemapping.test.ts|1✔|||12.701s| |e2e/__tests__/coverageRemapping.test.ts|1✔|||13s|
|e2e/__tests__/coverageReport.test.ts|12✔|||22.264s| |e2e/__tests__/coverageReport.test.ts|12✔|||22s|
|e2e/__tests__/coverageThreshold.test.ts|5✔|||4.868s| |e2e/__tests__/coverageThreshold.test.ts|5✔|||5s|
|e2e/__tests__/coverageTransformInstrumented.test.ts|1✔|||5.029s| |e2e/__tests__/coverageTransformInstrumented.test.ts|1✔|||5s|
|e2e/__tests__/coverageWithoutTransform.test.ts|1✔|||1.075s| |e2e/__tests__/coverageWithoutTransform.test.ts|1✔|||1s|
|e2e/__tests__/createProcessObject.test.ts|1✔|||908ms| |e2e/__tests__/createProcessObject.test.ts|1✔|||908ms|
|e2e/__tests__/customInlineSnapshotMatchers.test.ts|1✔|||2.206s| |e2e/__tests__/customInlineSnapshotMatchers.test.ts|1✔|||2s|
|e2e/__tests__/customMatcherStackTrace.test.ts|2✔|||1.539s| |e2e/__tests__/customMatcherStackTrace.test.ts|2✔|||2s|
|e2e/__tests__/customReporters.test.ts|9✔|||6.553s| |e2e/__tests__/customReporters.test.ts|9✔|||7s|
|e2e/__tests__/customResolver.test.ts|1✔|||826ms| |e2e/__tests__/customResolver.test.ts|1✔|||826ms|
|e2e/__tests__/customTestSequencers.test.ts|3✔|||2.757s| |e2e/__tests__/customTestSequencers.test.ts|3✔|||3s|
|e2e/__tests__/debug.test.ts|1✔|||899ms| |e2e/__tests__/debug.test.ts|1✔|||899ms|
|e2e/__tests__/declarationErrors.test.ts|3✔|||2.389s| |e2e/__tests__/declarationErrors.test.ts|3✔|||2s|
|e2e/__tests__/dependencyClash.test.ts|1✔|||833ms| |e2e/__tests__/dependencyClash.test.ts|1✔|||833ms|
|e2e/__tests__/detectOpenHandles.ts|8✔|||7.528s| |e2e/__tests__/detectOpenHandles.ts|8✔|||8s|
|e2e/__tests__/domDiffing.test.ts|1✔|||1.361s| |e2e/__tests__/domDiffing.test.ts|1✔|||1s|
|e2e/__tests__/doneInHooks.test.ts|1✔|||855ms| |e2e/__tests__/doneInHooks.test.ts|1✔|||855ms|
|e2e/__tests__/dynamicRequireDependencies.ts|1✔|||847ms| |e2e/__tests__/dynamicRequireDependencies.ts|1✔|||847ms|
|e2e/__tests__/each.test.ts|7✔|||4.721s| |e2e/__tests__/each.test.ts|7✔|||5s|
|e2e/__tests__/emptyDescribeWithHooks.test.ts|4✔|||2.886s| |e2e/__tests__/emptyDescribeWithHooks.test.ts|4✔|||3s|
|e2e/__tests__/emptySuiteError.test.ts|1✔|||885ms| |e2e/__tests__/emptySuiteError.test.ts|1✔|||885ms|
|e2e/__tests__/env.test.ts|6✔|||5.221s| |e2e/__tests__/env.test.ts|6✔|||5s|
|e2e/__tests__/environmentAfterTeardown.test.ts|1✔|||892ms| |e2e/__tests__/environmentAfterTeardown.test.ts|1✔|||892ms|
|e2e/__tests__/errorOnDeprecated.test.ts|1✔||24✖|56ms| |e2e/__tests__/errorOnDeprecated.test.ts|1✔||24✖|56ms|
|e2e/__tests__/esmConfigFile.test.ts|3✔|||526ms| |e2e/__tests__/esmConfigFile.test.ts|3✔|||526ms|
|e2e/__tests__/executeTestsOnceInMpr.ts|1✔|||976ms| |e2e/__tests__/executeTestsOnceInMpr.ts|1✔|||976ms|
|e2e/__tests__/existentRoots.test.ts|4✔|||627ms| |e2e/__tests__/existentRoots.test.ts|4✔|||627ms|
|e2e/__tests__/expectAsyncMatcher.test.ts|2✔|||2.732s| |e2e/__tests__/expectAsyncMatcher.test.ts|2✔|||3s|
|e2e/__tests__/expectInVm.test.ts|1✔|||1.527s| |e2e/__tests__/expectInVm.test.ts|1✔|||2s|
|e2e/__tests__/extraGlobals.test.ts|1✔|||1.011s| |e2e/__tests__/extraGlobals.test.ts|1✔|||1s|
|e2e/__tests__/failureDetailsProperty.test.ts|1✔|||907ms| |e2e/__tests__/failureDetailsProperty.test.ts|1✔|||907ms|
|e2e/__tests__/failures.test.ts|7✔|||10.353s| |e2e/__tests__/failures.test.ts|7✔|||10s|
|e2e/__tests__/fakePromises.test.ts|2✔|||1.716s| |e2e/__tests__/fakePromises.test.ts|2✔|||2s|
|e2e/__tests__/fatalWorkerError.test.ts|1✔|||3.167s| |e2e/__tests__/fatalWorkerError.test.ts|1✔|||3s|
|e2e/__tests__/filter.test.ts|7✔|||5.422s| |e2e/__tests__/filter.test.ts|7✔|||5s|
|e2e/__tests__/findRelatedFiles.test.ts|5✔|||6.230s| |e2e/__tests__/findRelatedFiles.test.ts|5✔|||6s|
|e2e/__tests__/focusedTests.test.ts|1✔|||888ms| |e2e/__tests__/focusedTests.test.ts|1✔|||888ms|
|e2e/__tests__/forceExit.test.ts|1✔|||2.208s| |e2e/__tests__/forceExit.test.ts|1✔|||2s|
|e2e/__tests__/generatorMock.test.ts|1✔|||1.027s| |e2e/__tests__/generatorMock.test.ts|1✔|||1s|
|e2e/__tests__/global-mutation.test.ts|1✔|||40ms| |e2e/__tests__/global-mutation.test.ts|1✔|||40ms|
|e2e/__tests__/global.test.ts|1✔|||31ms| |e2e/__tests__/global.test.ts|1✔|||31ms|
|e2e/__tests__/globals.test.ts|10✔|||7.505s| |e2e/__tests__/globals.test.ts|10✔|||8s|
|e2e/__tests__/globalSetup.test.ts|10✔|||13.926s| |e2e/__tests__/globalSetup.test.ts|10✔|||14s|
|e2e/__tests__/globalTeardown.test.ts|7✔|||11.886s| |e2e/__tests__/globalTeardown.test.ts|7✔|||12s|
|e2e/__tests__/hasteMapMockChanged.test.ts|1✔|||379ms| |e2e/__tests__/hasteMapMockChanged.test.ts|1✔|||379ms|
|e2e/__tests__/hasteMapSha1.test.ts|1✔|||298ms| |e2e/__tests__/hasteMapSha1.test.ts|1✔|||298ms|
|e2e/__tests__/hasteMapSize.test.ts|2✔|||397ms| |e2e/__tests__/hasteMapSize.test.ts|2✔|||397ms|
|e2e/__tests__/importedGlobals.test.ts|1✔|||1.043s| |e2e/__tests__/importedGlobals.test.ts|1✔|||1s|
|e2e/__tests__/injectGlobals.test.ts|2✔|||1.860s| |e2e/__tests__/injectGlobals.test.ts|2✔|||2s|
|e2e/__tests__/jasmineAsync.test.ts|15✔|||28.291s| |e2e/__tests__/jasmineAsync.test.ts|15✔|||28s|
|e2e/__tests__/jasmineAsyncWithPendingDuringTest.ts|1✔||1✖|72ms| |e2e/__tests__/jasmineAsyncWithPendingDuringTest.ts|1✔||1✖|72ms|
|e2e/__tests__/jest.config.js.test.ts|3✔|||2.134s| |e2e/__tests__/jest.config.js.test.ts|3✔|||2s|
|e2e/__tests__/jest.config.ts.test.ts|5✔|||14.322s| |e2e/__tests__/jest.config.ts.test.ts|5✔|||14s|
|[e2e/__tests__/jestChangedFiles.test.ts](#r0s75)|9✔|1❌||9.045s| |[e2e/__tests__/jestChangedFiles.test.ts](#r0s75)|9✔|1❌||9s|
|e2e/__tests__/jestEnvironmentJsdom.test.ts|1✔|||1.744s| |e2e/__tests__/jestEnvironmentJsdom.test.ts|1✔|||2s|
|e2e/__tests__/jestRequireActual.test.ts|1✔|||1.665s| |e2e/__tests__/jestRequireActual.test.ts|1✔|||2s|
|e2e/__tests__/jestRequireMock.test.ts|1✔|||2.119s| |e2e/__tests__/jestRequireMock.test.ts|1✔|||2s|
|e2e/__tests__/json.test.ts|2✔|||29ms| |e2e/__tests__/json.test.ts|2✔|||29ms|
|e2e/__tests__/jsonReporter.test.ts|2✔|||1.514s| |e2e/__tests__/jsonReporter.test.ts|2✔|||2s|
|e2e/__tests__/lifecycles.ts|1✔|||861ms| |e2e/__tests__/lifecycles.ts|1✔|||861ms|
|e2e/__tests__/listTests.test.ts|2✔|||945ms| |e2e/__tests__/listTests.test.ts|2✔|||945ms|
|e2e/__tests__/locationInResults.test.ts|2✔|||1.764s| |e2e/__tests__/locationInResults.test.ts|2✔|||2s|
|e2e/__tests__/logHeapUsage.test.ts|1✔|||884ms| |e2e/__tests__/logHeapUsage.test.ts|1✔|||884ms|
|e2e/__tests__/mockNames.test.ts|8✔|||6.771s| |e2e/__tests__/mockNames.test.ts|8✔|||7s|
|e2e/__tests__/modernFakeTimers.test.ts|2✔|||1.680s| |e2e/__tests__/modernFakeTimers.test.ts|2✔|||2s|
|e2e/__tests__/moduleNameMapper.test.ts|5✔|||5.395s| |e2e/__tests__/moduleNameMapper.test.ts|5✔|||5s|
|e2e/__tests__/moduleParentNullInTest.ts|1✔|||886ms| |e2e/__tests__/moduleParentNullInTest.ts|1✔|||886ms|
|e2e/__tests__/multiProjectRunner.test.ts|14✔|||16.360s| |e2e/__tests__/multiProjectRunner.test.ts|14✔|||16s|
|e2e/__tests__/nativeAsyncMock.test.ts|1✔|||55ms| |e2e/__tests__/nativeAsyncMock.test.ts|1✔|||55ms|
|e2e/__tests__/nativeEsm.test.ts|2✔||1✖|905ms| |e2e/__tests__/nativeEsm.test.ts|2✔||1✖|905ms|
|e2e/__tests__/nativeEsmTypescript.test.ts|1✔|||956ms| |e2e/__tests__/nativeEsmTypescript.test.ts|1✔|||956ms|
|e2e/__tests__/nestedEventLoop.test.ts|1✔|||1.422s| |e2e/__tests__/nestedEventLoop.test.ts|1✔|||1s|
|e2e/__tests__/nestedTestDefinitions.test.ts|4✔|||4.641s| |e2e/__tests__/nestedTestDefinitions.test.ts|4✔|||5s|
|e2e/__tests__/nodePath.test.ts|1✔|||866ms| |e2e/__tests__/nodePath.test.ts|1✔|||866ms|
|e2e/__tests__/noTestFound.test.ts|2✔|||1.063s| |e2e/__tests__/noTestFound.test.ts|2✔|||1s|
|e2e/__tests__/noTestsFound.test.ts|5✔|||2.739s| |e2e/__tests__/noTestsFound.test.ts|5✔|||3s|
|[e2e/__tests__/onlyChanged.test.ts](#r0s98)|8✔|1❌||22.281s| |[e2e/__tests__/onlyChanged.test.ts](#r0s98)|8✔|1❌||22s|
|e2e/__tests__/onlyFailuresNonWatch.test.ts|1✔|||2.893s| |e2e/__tests__/onlyFailuresNonWatch.test.ts|1✔|||3s|
|e2e/__tests__/overrideGlobals.test.ts|2✔|||2.046s| |e2e/__tests__/overrideGlobals.test.ts|2✔|||2s|
|e2e/__tests__/pnp.test.ts|1✔|||2.715s| |e2e/__tests__/pnp.test.ts|1✔|||3s|
|e2e/__tests__/presets.test.ts|2✔|||1.966s| |e2e/__tests__/presets.test.ts|2✔|||2s|
|e2e/__tests__/processExit.test.ts|1✔|||1.070s| |e2e/__tests__/processExit.test.ts|1✔|||1s|
|e2e/__tests__/promiseReject.test.ts|1✔|||967ms| |e2e/__tests__/promiseReject.test.ts|1✔|||967ms|
|e2e/__tests__/regexCharInPath.test.ts|1✔|||962ms| |e2e/__tests__/regexCharInPath.test.ts|1✔|||962ms|
|e2e/__tests__/requireAfterTeardown.test.ts|1✔|||921ms| |e2e/__tests__/requireAfterTeardown.test.ts|1✔|||921ms|
|e2e/__tests__/requireMain.test.ts|1✔|||1.137s| |e2e/__tests__/requireMain.test.ts|1✔|||1s|
|e2e/__tests__/requireMainAfterCreateRequire.test.ts|1✔|||966ms| |e2e/__tests__/requireMainAfterCreateRequire.test.ts|1✔|||966ms|
|e2e/__tests__/requireMainIsolateModules.test.ts|1✔|||976ms| |e2e/__tests__/requireMainIsolateModules.test.ts|1✔|||976ms|
|e2e/__tests__/requireMainResetModules.test.ts|2✔|||1.961s| |e2e/__tests__/requireMainResetModules.test.ts|2✔|||2s|
|e2e/__tests__/requireV8Module.test.ts|1✔|||30ms| |e2e/__tests__/requireV8Module.test.ts|1✔|||30ms|
|e2e/__tests__/resetModules.test.ts|1✔|||926ms| |e2e/__tests__/resetModules.test.ts|1✔|||926ms|
|e2e/__tests__/resolve.test.ts|1✔|||1.863s| |e2e/__tests__/resolve.test.ts|1✔|||2s|
|e2e/__tests__/resolveGetPaths.test.ts|1✔|||1.155s| |e2e/__tests__/resolveGetPaths.test.ts|1✔|||1s|
|e2e/__tests__/resolveNodeModule.test.ts|1✔|||943ms| |e2e/__tests__/resolveNodeModule.test.ts|1✔|||943ms|
|e2e/__tests__/resolveNoFileExtensions.test.ts|2✔|||1.263s| |e2e/__tests__/resolveNoFileExtensions.test.ts|2✔|||1s|
|e2e/__tests__/resolveWithPaths.test.ts|1✔|||1.170s| |e2e/__tests__/resolveWithPaths.test.ts|1✔|||1s|
|e2e/__tests__/runProgrammatically.test.ts|2✔|||575ms| |e2e/__tests__/runProgrammatically.test.ts|2✔|||575ms|
|e2e/__tests__/runTestsByPath.test.ts|1✔|||1.999s| |e2e/__tests__/runTestsByPath.test.ts|1✔|||2s|
|e2e/__tests__/runtimeInternalModuleRegistry.test.ts|1✔|||1.202s| |e2e/__tests__/runtimeInternalModuleRegistry.test.ts|1✔|||1s|
|e2e/__tests__/selectProjects.test.ts|18✔|||5.236s| |e2e/__tests__/selectProjects.test.ts|18✔|||5s|
|e2e/__tests__/setImmediate.test.ts|1✔|||904ms| |e2e/__tests__/setImmediate.test.ts|1✔|||904ms|
|e2e/__tests__/setupFilesAfterEnvConfig.test.ts|2✔|||1.967s| |e2e/__tests__/setupFilesAfterEnvConfig.test.ts|2✔|||2s|
|e2e/__tests__/showConfig.test.ts|1✔|||195ms| |e2e/__tests__/showConfig.test.ts|1✔|||195ms|
|e2e/__tests__/skipBeforeAfterAll.test.ts|1✔|||1.061s| |e2e/__tests__/skipBeforeAfterAll.test.ts|1✔|||1s|
|e2e/__tests__/snapshot-unknown.test.ts|1✔|||838ms| |e2e/__tests__/snapshot-unknown.test.ts|1✔|||838ms|
|e2e/__tests__/snapshot.test.ts|9✔|||13.899s| |e2e/__tests__/snapshot.test.ts|9✔|||14s|
|e2e/__tests__/snapshotMockFs.test.ts|1✔|||883ms| |e2e/__tests__/snapshotMockFs.test.ts|1✔|||883ms|
|e2e/__tests__/snapshotResolver.test.ts|1✔|||823ms| |e2e/__tests__/snapshotResolver.test.ts|1✔|||823ms|
|e2e/__tests__/snapshotSerializers.test.ts|2✔|||2.065s| |e2e/__tests__/snapshotSerializers.test.ts|2✔|||2s|
|e2e/__tests__/stackTrace.test.ts|7✔|||4.725s| |e2e/__tests__/stackTrace.test.ts|7✔|||5s|
|e2e/__tests__/stackTraceNoCaptureStackTrace.test.ts|1✔|||899ms| |e2e/__tests__/stackTraceNoCaptureStackTrace.test.ts|1✔|||899ms|
|e2e/__tests__/stackTraceSourceMaps.test.ts|1✔|||2.185s| |e2e/__tests__/stackTraceSourceMaps.test.ts|1✔|||2s|
|e2e/__tests__/stackTraceSourceMapsWithCoverage.test.ts|1✔|||2.444s| |e2e/__tests__/stackTraceSourceMapsWithCoverage.test.ts|1✔|||2s|
|e2e/__tests__/supportsDashedArgs.ts|2✔|||968ms| |e2e/__tests__/supportsDashedArgs.ts|2✔|||968ms|
|e2e/__tests__/symbol.test.ts|1✔|||49ms| |e2e/__tests__/symbol.test.ts|1✔|||49ms|
|e2e/__tests__/testEnvironment.test.ts|1✔|||1.628s| |e2e/__tests__/testEnvironment.test.ts|1✔|||2s|
|e2e/__tests__/testEnvironmentAsync.test.ts|1✔|||1.493s| |e2e/__tests__/testEnvironmentAsync.test.ts|1✔|||1s|
|e2e/__tests__/testEnvironmentCircus.test.ts|1✔|||1.501s| |e2e/__tests__/testEnvironmentCircus.test.ts|1✔|||2s|
|e2e/__tests__/testEnvironmentCircusAsync.test.ts|1✔|||1.507s| |e2e/__tests__/testEnvironmentCircusAsync.test.ts|1✔|||2s|
|e2e/__tests__/testFailureExitCode.test.ts|2✔|||4.476s| |e2e/__tests__/testFailureExitCode.test.ts|2✔|||4s|
|e2e/__tests__/testInRoot.test.ts|1✔|||1.009s| |e2e/__tests__/testInRoot.test.ts|1✔|||1s|
|e2e/__tests__/testNamePattern.test.ts|1✔|||859ms| |e2e/__tests__/testNamePattern.test.ts|1✔|||859ms|
|e2e/__tests__/testNamePatternSkipped.test.ts|1✔|||991ms| |e2e/__tests__/testNamePatternSkipped.test.ts|1✔|||991ms|
|e2e/__tests__/testPathPatternReporterMessage.test.ts|1✔|||3.076s| |e2e/__tests__/testPathPatternReporterMessage.test.ts|1✔|||3s|
|e2e/__tests__/testResultsProcessor.test.ts|1✔|||910ms| |e2e/__tests__/testResultsProcessor.test.ts|1✔|||910ms|
|e2e/__tests__/testRetries.test.ts|4✔|||3.277s| |e2e/__tests__/testRetries.test.ts|4✔|||3s|
|e2e/__tests__/testTodo.test.ts|5✔|||3.573s| |e2e/__tests__/testTodo.test.ts|5✔|||4s|
|e2e/__tests__/timeouts.test.ts|4✔|||4.029s| |e2e/__tests__/timeouts.test.ts|4✔|||4s|
|e2e/__tests__/timeoutsLegacy.test.ts|1✔||3✖|71ms| |e2e/__tests__/timeoutsLegacy.test.ts|1✔||3✖|71ms|
|e2e/__tests__/timerResetMocks.test.ts|2✔|||1.878s| |e2e/__tests__/timerResetMocks.test.ts|2✔|||2s|
|e2e/__tests__/timerUseRealTimers.test.ts|1✔|||1.018s| |e2e/__tests__/timerUseRealTimers.test.ts|1✔|||1s|
|e2e/__tests__/toMatchInlineSnapshot.test.ts|12✔|||23.917s| |e2e/__tests__/toMatchInlineSnapshot.test.ts|12✔|||24s|
|e2e/__tests__/toMatchInlineSnapshotWithRetries.test.ts|3✔|||4.670s| |e2e/__tests__/toMatchInlineSnapshotWithRetries.test.ts|3✔|||5s|
|e2e/__tests__/toMatchSnapshot.test.ts|9✔|||17.025s| |e2e/__tests__/toMatchSnapshot.test.ts|9✔|||17s|
|e2e/__tests__/toMatchSnapshotWithRetries.test.ts|2✔|||4.435s| |e2e/__tests__/toMatchSnapshotWithRetries.test.ts|2✔|||4s|
|e2e/__tests__/toMatchSnapshotWithStringSerializer.test.ts|3✔|||3.544s| |e2e/__tests__/toMatchSnapshotWithStringSerializer.test.ts|3✔|||4s|
|e2e/__tests__/toThrowErrorMatchingInlineSnapshot.test.ts|4✔|||3.562s| |e2e/__tests__/toThrowErrorMatchingInlineSnapshot.test.ts|4✔|||4s|
|e2e/__tests__/toThrowErrorMatchingSnapshot.test.ts|5✔|||3.524s| |e2e/__tests__/toThrowErrorMatchingSnapshot.test.ts|5✔|||4s|
|e2e/__tests__/transform.test.ts|16✔|||26.740s| |e2e/__tests__/transform.test.ts|16✔|||27s|
|e2e/__tests__/transformLinkedModules.test.ts|1✔|||783ms| |e2e/__tests__/transformLinkedModules.test.ts|1✔|||783ms|
|e2e/__tests__/typescriptCoverage.test.ts|1✔|||2.893s| |e2e/__tests__/typescriptCoverage.test.ts|1✔|||3s|
|e2e/__tests__/unexpectedToken.test.ts|3✔|||3.411s| |e2e/__tests__/unexpectedToken.test.ts|3✔|||3s|
|e2e/__tests__/useStderr.test.ts|1✔|||1.352s| |e2e/__tests__/useStderr.test.ts|1✔|||1s|
|e2e/__tests__/v8Coverage.test.ts|2✔|||2.412s| |e2e/__tests__/v8Coverage.test.ts|2✔|||2s|
|e2e/__tests__/verbose.test.ts|1✔|||683ms| |e2e/__tests__/verbose.test.ts|1✔|||683ms|
|e2e/__tests__/version.test.ts|1✔|||138ms| |e2e/__tests__/version.test.ts|1✔|||138ms|
|e2e/__tests__/watchModeNoAccess.test.ts|1✔|||4.370s| |e2e/__tests__/watchModeNoAccess.test.ts|1✔|||4s|
|e2e/__tests__/watchModeOnlyFailed.test.ts|1✔|||1.394s| |e2e/__tests__/watchModeOnlyFailed.test.ts|1✔|||1s|
|e2e/__tests__/watchModePatterns.test.ts|2✔|||3.503s| |e2e/__tests__/watchModePatterns.test.ts|2✔|||4s|
|e2e/__tests__/watchModeUpdateSnapshot.test.ts|1✔|||1.075s| |e2e/__tests__/watchModeUpdateSnapshot.test.ts|1✔|||1s|
|e2e/__tests__/workerForceExit.test.ts|2✔|||4.751s| |e2e/__tests__/workerForceExit.test.ts|2✔|||5s|
|e2e/__tests__/wrongEnv.test.ts|5✔|||3.877s| |e2e/__tests__/wrongEnv.test.ts|5✔|||4s|
|e2e/custom-test-sequencer/a.test.js|1✔|||29ms| |e2e/custom-test-sequencer/a.test.js|1✔|||29ms|
|e2e/custom-test-sequencer/b.test.js|1✔|||21ms| |e2e/custom-test-sequencer/b.test.js|1✔|||21ms|
|e2e/custom-test-sequencer/c.test.js|1✔|||42ms| |e2e/custom-test-sequencer/c.test.js|1✔|||42ms|
@ -206,7 +206,7 @@
|examples/module-mock/__tests__/mock_per_test.js|2✔|||116ms| |examples/module-mock/__tests__/mock_per_test.js|2✔|||116ms|
|examples/module-mock/__tests__/partial_mock.js|1✔|||215ms| |examples/module-mock/__tests__/partial_mock.js|1✔|||215ms|
|examples/mongodb/__test__/db.test.js|1✔|||236ms| |examples/mongodb/__test__/db.test.js|1✔|||236ms|
|examples/react-native/__tests__/intro.test.js|4✔|||8.559s| |examples/react-native/__tests__/intro.test.js|4✔|||9s|
|examples/react-testing-library/__tests__/CheckboxWithLabel-test.js|1✔|||469ms| |examples/react-testing-library/__tests__/CheckboxWithLabel-test.js|1✔|||469ms|
|examples/react/__tests__/CheckboxWithLabel-test.js|1✔|||256ms| |examples/react/__tests__/CheckboxWithLabel-test.js|1✔|||256ms|
|examples/snapshot/__tests__/clock.react.test.js|1✔|||62ms| |examples/snapshot/__tests__/clock.react.test.js|1✔|||62ms|
@ -228,7 +228,7 @@
|packages/expect/src/__tests__/isError.test.ts|4✔|||43ms| |packages/expect/src/__tests__/isError.test.ts|4✔|||43ms|
|packages/expect/src/__tests__/matchers-toContain.property.test.ts|2✔|||236ms| |packages/expect/src/__tests__/matchers-toContain.property.test.ts|2✔|||236ms|
|packages/expect/src/__tests__/matchers-toContainEqual.property.test.ts|2✔|||287ms| |packages/expect/src/__tests__/matchers-toContainEqual.property.test.ts|2✔|||287ms|
|packages/expect/src/__tests__/matchers-toEqual.property.test.ts|2✔|||1.062s| |packages/expect/src/__tests__/matchers-toEqual.property.test.ts|2✔|||1s|
|packages/expect/src/__tests__/matchers-toStrictEqual.property.test.ts|3✔|||394ms| |packages/expect/src/__tests__/matchers-toStrictEqual.property.test.ts|3✔|||394ms|
|packages/expect/src/__tests__/matchers.test.js|592✔|||862ms| |packages/expect/src/__tests__/matchers.test.js|592✔|||862ms|
|packages/expect/src/__tests__/spyMatchers.test.ts|248✔|||395ms| |packages/expect/src/__tests__/spyMatchers.test.ts|248✔|||395ms|
@ -237,11 +237,11 @@
|packages/expect/src/__tests__/toEqual-dom.test.ts|12✔|||99ms| |packages/expect/src/__tests__/toEqual-dom.test.ts|12✔|||99ms|
|packages/expect/src/__tests__/toThrowMatchers.test.ts|98✔|||257ms| |packages/expect/src/__tests__/toThrowMatchers.test.ts|98✔|||257ms|
|packages/expect/src/__tests__/utils.test.ts|41✔|||147ms| |packages/expect/src/__tests__/utils.test.ts|41✔|||147ms|
|packages/jest-circus/src/__tests__/afterAll.test.ts|6✔|||5.755s| |packages/jest-circus/src/__tests__/afterAll.test.ts|6✔|||6s|
|packages/jest-circus/src/__tests__/baseTest.test.ts|2✔|||2.902s| |packages/jest-circus/src/__tests__/baseTest.test.ts|2✔|||3s|
|packages/jest-circus/src/__tests__/circusItTestError.test.ts|8✔|||300ms| |packages/jest-circus/src/__tests__/circusItTestError.test.ts|8✔|||300ms|
|packages/jest-circus/src/__tests__/circusItTodoTestError.test.ts|3✔|||81ms| |packages/jest-circus/src/__tests__/circusItTodoTestError.test.ts|3✔|||81ms|
|packages/jest-circus/src/__tests__/hooks.test.ts|3✔|||3.762s| |packages/jest-circus/src/__tests__/hooks.test.ts|3✔|||4s|
|packages/jest-circus/src/__tests__/hooksError.test.ts|32✔|||127ms| |packages/jest-circus/src/__tests__/hooksError.test.ts|32✔|||127ms|
|packages/jest-cli/src/__tests__/cli/args.test.ts|17✔|||345ms| |packages/jest-cli/src/__tests__/cli/args.test.ts|17✔|||345ms|
|packages/jest-cli/src/init/__tests__/init.test.js|24✔|||119ms| |packages/jest-cli/src/init/__tests__/init.test.js|24✔|||119ms|
@ -261,12 +261,12 @@
|packages/jest-core/src/__tests__/getNoTestsFoundMessage.test.js|5✔|||61ms| |packages/jest-core/src/__tests__/getNoTestsFoundMessage.test.js|5✔|||61ms|
|packages/jest-core/src/__tests__/globals.test.ts|1✔|||22ms| |packages/jest-core/src/__tests__/globals.test.ts|1✔|||22ms|
|packages/jest-core/src/__tests__/runJest.test.js|2✔|||261ms| |packages/jest-core/src/__tests__/runJest.test.js|2✔|||261ms|
|packages/jest-core/src/__tests__/SearchSource.test.ts|27✔|||2.596s| |packages/jest-core/src/__tests__/SearchSource.test.ts|27✔|||3s|
|packages/jest-core/src/__tests__/SnapshotInteractiveMode.test.js|13✔|||89ms| |packages/jest-core/src/__tests__/SnapshotInteractiveMode.test.js|13✔|||89ms|
|packages/jest-core/src/__tests__/TestScheduler.test.js|8✔|||520ms| |packages/jest-core/src/__tests__/TestScheduler.test.js|8✔|||520ms|
|packages/jest-core/src/__tests__/testSchedulerHelper.test.js|12✔|||48ms| |packages/jest-core/src/__tests__/testSchedulerHelper.test.js|12✔|||48ms|
|packages/jest-core/src/__tests__/watch.test.js|80✔|||6.755s| |packages/jest-core/src/__tests__/watch.test.js|80✔|||7s|
|packages/jest-core/src/__tests__/watchFileChanges.test.ts|1✔|||1.514s| |packages/jest-core/src/__tests__/watchFileChanges.test.ts|1✔|||2s|
|packages/jest-core/src/__tests__/watchFilenamePatternMode.test.js|2✔|||165ms| |packages/jest-core/src/__tests__/watchFilenamePatternMode.test.js|2✔|||165ms|
|packages/jest-core/src/__tests__/watchTestNamePatternMode.test.js|1✔|||246ms| |packages/jest-core/src/__tests__/watchTestNamePatternMode.test.js|1✔|||246ms|
|packages/jest-core/src/lib/__tests__/isValidPath.test.ts|3✔|||166ms| |packages/jest-core/src/lib/__tests__/isValidPath.test.ts|3✔|||166ms|
@ -289,7 +289,7 @@
|packages/jest-globals/src/__tests__/index.ts|1✔|||533ms| |packages/jest-globals/src/__tests__/index.ts|1✔|||533ms|
|packages/jest-haste-map/src/__tests__/get_mock_name.test.js|1✔|||22ms| |packages/jest-haste-map/src/__tests__/get_mock_name.test.js|1✔|||22ms|
|packages/jest-haste-map/src/__tests__/includes_dotfiles.test.ts|1✔|||337ms| |packages/jest-haste-map/src/__tests__/includes_dotfiles.test.ts|1✔|||337ms|
|packages/jest-haste-map/src/__tests__/index.test.js|44✔|||1.145s| |packages/jest-haste-map/src/__tests__/index.test.js|44✔|||1s|
|packages/jest-haste-map/src/__tests__/worker.test.js|7✔|||100ms| |packages/jest-haste-map/src/__tests__/worker.test.js|7✔|||100ms|
|packages/jest-haste-map/src/crawlers/__tests__/node.test.js|10✔|||170ms| |packages/jest-haste-map/src/crawlers/__tests__/node.test.js|10✔|||170ms|
|packages/jest-haste-map/src/crawlers/__tests__/watchman.test.js|8✔|||153ms| |packages/jest-haste-map/src/crawlers/__tests__/watchman.test.js|8✔|||153ms|
@ -318,12 +318,12 @@
|packages/jest-message-util/src/__tests__/messages.test.ts|11✔|||205ms| |packages/jest-message-util/src/__tests__/messages.test.ts|11✔|||205ms|
|packages/jest-mock/src/__tests__/index.test.ts|84✔|||509ms| |packages/jest-mock/src/__tests__/index.test.ts|84✔|||509ms|
|packages/jest-regex-util/src/__tests__/index.test.ts|8✔|||56ms| |packages/jest-regex-util/src/__tests__/index.test.ts|8✔|||56ms|
|packages/jest-repl/src/__tests__/jest_repl.test.js|1✔|||1.172s| |packages/jest-repl/src/__tests__/jest_repl.test.js|1✔|||1s|
|packages/jest-repl/src/__tests__/runtime_cli.test.js|4✔|||4.094s| |packages/jest-repl/src/__tests__/runtime_cli.test.js|4✔|||4s|
|packages/jest-reporters/src/__tests__/CoverageReporter.test.js|12✔|||397ms| |packages/jest-reporters/src/__tests__/CoverageReporter.test.js|12✔|||397ms|
|packages/jest-reporters/src/__tests__/CoverageWorker.test.js|2✔|||199ms| |packages/jest-reporters/src/__tests__/CoverageWorker.test.js|2✔|||199ms|
|packages/jest-reporters/src/__tests__/DefaultReporter.test.js|2✔|||148ms| |packages/jest-reporters/src/__tests__/DefaultReporter.test.js|2✔|||148ms|
|packages/jest-reporters/src/__tests__/generateEmptyCoverage.test.js|3✔|||1.129s| |packages/jest-reporters/src/__tests__/generateEmptyCoverage.test.js|3✔|||1s|
|packages/jest-reporters/src/__tests__/getResultHeader.test.js|4✔|||30ms| |packages/jest-reporters/src/__tests__/getResultHeader.test.js|4✔|||30ms|
|packages/jest-reporters/src/__tests__/getSnapshotStatus.test.js|3✔|||28ms| |packages/jest-reporters/src/__tests__/getSnapshotStatus.test.js|3✔|||28ms|
|packages/jest-reporters/src/__tests__/getSnapshotSummary.test.js|4✔|||49ms| |packages/jest-reporters/src/__tests__/getSnapshotSummary.test.js|4✔|||49ms|
@ -334,7 +334,7 @@
|packages/jest-reporters/src/__tests__/VerboseReporter.test.js|11✔|||425ms| |packages/jest-reporters/src/__tests__/VerboseReporter.test.js|11✔|||425ms|
|packages/jest-resolve-dependencies/src/__tests__/dependency_resolver.test.ts|11✔|||666ms| |packages/jest-resolve-dependencies/src/__tests__/dependency_resolver.test.ts|11✔|||666ms|
|packages/jest-resolve/src/__tests__/isBuiltinModule.test.ts|4✔|||36ms| |packages/jest-resolve/src/__tests__/isBuiltinModule.test.ts|4✔|||36ms|
|packages/jest-resolve/src/__tests__/resolve.test.ts|16✔|||1.308s| |packages/jest-resolve/src/__tests__/resolve.test.ts|16✔|||1s|
|packages/jest-runner/src/__tests__/testRunner.test.ts|2✔|||905ms| |packages/jest-runner/src/__tests__/testRunner.test.ts|2✔|||905ms|
|packages/jest-runtime/src/__tests__/instrumentation.test.ts|1✔|||275ms| |packages/jest-runtime/src/__tests__/instrumentation.test.ts|1✔|||275ms|
|packages/jest-runtime/src/__tests__/runtime_create_mock_from_module.test.js|3✔|||606ms| |packages/jest-runtime/src/__tests__/runtime_create_mock_from_module.test.js|3✔|||606ms|
@ -344,31 +344,31 @@
|packages/jest-runtime/src/__tests__/runtime_jest_spy_on.test.js|2✔|||521ms| |packages/jest-runtime/src/__tests__/runtime_jest_spy_on.test.js|2✔|||521ms|
|packages/jest-runtime/src/__tests__/runtime_mock.test.js|4✔|||743ms| |packages/jest-runtime/src/__tests__/runtime_mock.test.js|4✔|||743ms|
|packages/jest-runtime/src/__tests__/runtime_module_directories.test.js|4✔|||525ms| |packages/jest-runtime/src/__tests__/runtime_module_directories.test.js|4✔|||525ms|
|packages/jest-runtime/src/__tests__/runtime_node_path.test.js|4✔|||1.088s| |packages/jest-runtime/src/__tests__/runtime_node_path.test.js|4✔|||1s|
|packages/jest-runtime/src/__tests__/runtime_require_actual.test.js|2✔|||478ms| |packages/jest-runtime/src/__tests__/runtime_require_actual.test.js|2✔|||478ms|
|packages/jest-runtime/src/__tests__/runtime_require_cache.test.js|2✔|||454ms| |packages/jest-runtime/src/__tests__/runtime_require_cache.test.js|2✔|||454ms|
|packages/jest-runtime/src/__tests__/runtime_require_mock.test.js|13✔|||962ms| |packages/jest-runtime/src/__tests__/runtime_require_mock.test.js|13✔|||962ms|
|packages/jest-runtime/src/__tests__/runtime_require_module_no_ext.test.js|1✔|||261ms| |packages/jest-runtime/src/__tests__/runtime_require_module_no_ext.test.js|1✔|||261ms|
|packages/jest-runtime/src/__tests__/runtime_require_module_or_mock_transitive_deps.test.js|6✔|||2.366s| |packages/jest-runtime/src/__tests__/runtime_require_module_or_mock_transitive_deps.test.js|6✔|||2s|
|packages/jest-runtime/src/__tests__/runtime_require_module_or_mock.test.js|17✔|||1.223s| |packages/jest-runtime/src/__tests__/runtime_require_module_or_mock.test.js|17✔|||1s|
|packages/jest-runtime/src/__tests__/runtime_require_module.test.js|27✔|||2.439s| |packages/jest-runtime/src/__tests__/runtime_require_module.test.js|27✔|||2s|
|packages/jest-runtime/src/__tests__/runtime_require_resolve.test.ts|5✔|||707ms| |packages/jest-runtime/src/__tests__/runtime_require_resolve.test.ts|5✔|||707ms|
|packages/jest-runtime/src/__tests__/runtime_wrap.js|2✔|||263ms| |packages/jest-runtime/src/__tests__/runtime_wrap.js|2✔|||263ms|
|packages/jest-runtime/src/__tests__/Runtime-sourceMaps.test.js|1✔|||584ms| |packages/jest-runtime/src/__tests__/Runtime-sourceMaps.test.js|1✔|||584ms|
|packages/jest-runtime/src/__tests__/Runtime-statics.test.js|2✔|||162ms| |packages/jest-runtime/src/__tests__/Runtime-statics.test.js|2✔|||162ms|
|packages/jest-serializer/src/__tests__/index.test.ts|17✔|||158ms| |packages/jest-serializer/src/__tests__/index.test.ts|17✔|||158ms|
|packages/jest-snapshot/src/__tests__/dedentLines.test.ts|17✔|||94ms| |packages/jest-snapshot/src/__tests__/dedentLines.test.ts|17✔|||94ms|
|packages/jest-snapshot/src/__tests__/InlineSnapshots.test.ts|22✔|||1.149s| |packages/jest-snapshot/src/__tests__/InlineSnapshots.test.ts|22✔|||1s|
|packages/jest-snapshot/src/__tests__/matcher.test.ts|1✔|||131ms| |packages/jest-snapshot/src/__tests__/matcher.test.ts|1✔|||131ms|
|packages/jest-snapshot/src/__tests__/mockSerializer.test.ts|10✔|||45ms| |packages/jest-snapshot/src/__tests__/mockSerializer.test.ts|10✔|||45ms|
|packages/jest-snapshot/src/__tests__/printSnapshot.test.ts|71✔|||1.188s| |packages/jest-snapshot/src/__tests__/printSnapshot.test.ts|71✔|||1s|
|packages/jest-snapshot/src/__tests__/SnapshotResolver.test.ts|10✔|||98ms| |packages/jest-snapshot/src/__tests__/SnapshotResolver.test.ts|10✔|||98ms|
|packages/jest-snapshot/src/__tests__/throwMatcher.test.ts|3✔|||481ms| |packages/jest-snapshot/src/__tests__/throwMatcher.test.ts|3✔|||481ms|
|packages/jest-snapshot/src/__tests__/utils.test.ts|26✔|||214ms| |packages/jest-snapshot/src/__tests__/utils.test.ts|26✔|||214ms|
|packages/jest-source-map/src/__tests__/getCallsite.test.ts|3✔|||86ms| |packages/jest-source-map/src/__tests__/getCallsite.test.ts|3✔|||86ms|
|packages/jest-test-result/src/__tests__/formatTestResults.test.ts|1✔|||53ms| |packages/jest-test-result/src/__tests__/formatTestResults.test.ts|1✔|||53ms|
|packages/jest-test-sequencer/src/__tests__/test_sequencer.test.js|8✔|||251ms| |packages/jest-test-sequencer/src/__tests__/test_sequencer.test.js|8✔|||251ms|
|packages/jest-transform/src/__tests__/ScriptTransformer.test.ts|22✔|||1.660s| |packages/jest-transform/src/__tests__/ScriptTransformer.test.ts|22✔|||2s|
|packages/jest-transform/src/__tests__/shouldInstrument.test.ts|25✔|||155ms| |packages/jest-transform/src/__tests__/shouldInstrument.test.ts|25✔|||155ms|
|packages/jest-util/src/__tests__/createProcessObject.test.ts|4✔|||81ms| |packages/jest-util/src/__tests__/createProcessObject.test.ts|4✔|||81ms|
|packages/jest-util/src/__tests__/deepCyclicCopy.test.ts|12✔|||86ms| |packages/jest-util/src/__tests__/deepCyclicCopy.test.ts|12✔|||86ms|
@ -403,32 +403,30 @@
|packages/pretty-format/src/__tests__/prettyFormat.test.ts|86✔|||219ms| |packages/pretty-format/src/__tests__/prettyFormat.test.ts|86✔|||219ms|
|packages/pretty-format/src/__tests__/react.test.tsx|55✔|||325ms| |packages/pretty-format/src/__tests__/react.test.tsx|55✔|||325ms|
|packages/pretty-format/src/__tests__/ReactElement.test.ts|3✔|||64ms| |packages/pretty-format/src/__tests__/ReactElement.test.ts|3✔|||64ms|
### <a id="user-content-r0s75" href="#r0s75">e2e/__tests__/jestChangedFiles.test.ts</a> ### ❌ <a id="user-content-r0s75" href="#r0s75">e2e/__tests__/jestChangedFiles.test.ts</a>
**10** tests were completed in **9.045s** with **9** passed, **1** failed and **0** skipped. ```
✔️ gets hg SCM roots and dedupes them
|Result|Test|Time| ✔️ gets git SCM roots and dedupes them
|:---:|:---|---:| ✔️ gets mixed git and hg SCM roots and dedupes them
|✔️|gets hg SCM roots and dedupes them|559ms| ✔️ gets changed files for git
|✔️|gets git SCM roots and dedupes them|416ms| ✔️ monitors only root paths for git
|✔️|gets mixed git and hg SCM roots and dedupes them|467ms| ✔️ does not find changes in files with no diff, for git
|✔️|gets changed files for git|2.298s| ✔️ handles a bad revision for "changedSince", for git
|✔️|monitors only root paths for git|151ms| ❌ gets changed files for hg
|✔️|does not find changes in files with no diff, for git|628ms| Error: abort: empty revision range
|✔️|handles a bad revision for "changedSince", for git|878ms| ✔️ monitors only root paths for hg
|❌|gets changed files for hg|2.219s| ✔️ handles a bad revision for "changedSince", for hg
|✔️|monitors only root paths for hg|281ms| ```
|✔️|handles a bad revision for "changedSince", for hg|949ms| ### ❌ <a id="user-content-r0s98" href="#r0s98">e2e/__tests__/onlyChanged.test.ts</a>
### <a id="user-content-r0s98" href="#r0s98">e2e/__tests__/onlyChanged.test.ts</a> ```
**9** tests were completed in **22.281s** with **8** passed, **1** failed and **0** skipped. ✔️ run for "onlyChanged" and "changedSince"
✔️ run only changed files
|Result|Test|Time| ✔️ report test coverage for only changed files
|:---:|:---|---:| ✔️ report test coverage of source on test file change under only changed files
|✔️|run for "onlyChanged" and "changedSince"|1.464s| ✔️ do not pickup non-tested files when reporting coverage on only changed files
|✔️|run only changed files|5.196s| ✔️ collect test coverage when using onlyChanged
|✔️|report test coverage for only changed files|1.889s| ✔️ onlyChanged in config is overwritten by --all or testPathPattern
|✔️|report test coverage of source on test file change under only changed files|822ms| ❌ gets changed files for hg
|✔️|do not pickup non-tested files when reporting coverage on only changed files|861ms| Error: expect(received).toMatch(expected)
|✔️|collect test coverage when using onlyChanged|1.058s| ✔️ path on Windows is case-insensitive
|✔️|onlyChanged in config is overwritten by --all or testPathPattern|7.023s| ```
|❌|gets changed files for hg|3.765s|
|✔️|path on Windows is case-insensitive|0ms|

View file

@ -1,5 +1,5 @@
![Tests failed](https://img.shields.io/badge/tests-268%20passed%2C%201%20failed-critical) ![Tests failed](https://img.shields.io/badge/tests-268%20passed%2C%201%20failed-critical)
## <a id="user-content-r0" href="#r0">fixtures/external/flutter/provider-test-results.json</a> ## <a id="user-content-r0" href="#r0">fixtures/external/flutter/provider-test-results.json</a>
**269** tests were completed in **0ms** with **268** passed, **1** failed and **0** skipped. **269** tests were completed in **0ms** with **268** passed, **1** failed and **0** skipped.
|Test suite|Passed|Failed|Skipped|Time| |Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:| |:---|---:|---:|---:|---:|
@ -8,7 +8,7 @@
|[test/consumer_test.dart](#r0s2)|18✔|||340ms| |[test/consumer_test.dart](#r0s2)|18✔|||340ms|
|[test/context_test.dart](#r0s3)|31✔|||698ms| |[test/context_test.dart](#r0s3)|31✔|||698ms|
|[test/future_provider_test.dart](#r0s4)|10✔|||305ms| |[test/future_provider_test.dart](#r0s4)|10✔|||305ms|
|[test/inherited_provider_test.dart](#r0s5)|81✔|||1.117s| |[test/inherited_provider_test.dart](#r0s5)|81✔|||1s|
|[test/listenable_provider_test.dart](#r0s6)|16✔|||353ms| |[test/listenable_provider_test.dart](#r0s6)|16✔|||353ms|
|[test/listenable_proxy_provider_test.dart](#r0s7)|12✔|||373ms| |[test/listenable_proxy_provider_test.dart](#r0s7)|12✔|||373ms|
|[test/multi_provider_test.dart](#r0s8)|3✔|||198ms| |[test/multi_provider_test.dart](#r0s8)|3✔|||198ms|
@ -19,455 +19,356 @@
|[test/stateful_provider_test.dart](#r0s13)|4✔|||254ms| |[test/stateful_provider_test.dart](#r0s13)|4✔|||254ms|
|[test/stream_provider_test.dart](#r0s14)|8✔|||282ms| |[test/stream_provider_test.dart](#r0s14)|8✔|||282ms|
|[test/value_listenable_provider_test.dart](#r0s15)|4✔|1❌||327ms| |[test/value_listenable_provider_test.dart](#r0s15)|4✔|1❌||327ms|
### <a id="user-content-r0s0" href="#r0s0">test/builder_test.dart</a> ✔️ ### ✔️ <a id="user-content-r0s0" href="#r0s0">test/builder_test.dart</a>
**24** tests were completed in **402ms** with **24** passed, **0** failed and **0** skipped. ```
ChangeNotifierProvider
**ChangeNotifierProvider** ✔️ default
|Result|Test|Time| ✔️ .value
|:---:|:---|---:| ListenableProvider
|✔️|default|189ms| ✔️ default
|✔️|.value|10ms| ✔️ .value
Provider
**ListenableProvider** ✔️ default
|Result|Test|Time| ✔️ .value
|:---:|:---|---:| ProxyProvider
|✔️|default|9ms| ✔️ 0
|✔️|.value|16ms| ✔️ 1
✔️ 2
**Provider** ✔️ 3
|Result|Test|Time| ✔️ 4
|:---:|:---|---:| ✔️ 5
|✔️|default|11ms| ✔️ 6
|✔️|.value|8ms| MultiProvider
✔️ with 1 ChangeNotifierProvider default
**ProxyProvider** ✔️ with 2 ChangeNotifierProvider default
|Result|Test|Time| ✔️ with ListenableProvider default
|:---:|:---|---:| ✔️ with Provider default
|✔️|0|11ms| ✔️ with ProxyProvider0
|✔️|1|10ms| ✔️ with ProxyProvider1
|✔️|2|8ms| ✔️ with ProxyProvider2
|✔️|3|10ms| ✔️ with ProxyProvider3
|✔️|4|9ms| ✔️ with ProxyProvider4
|✔️|5|9ms| ✔️ with ProxyProvider5
|✔️|6|9ms| ✔️ with ProxyProvider6
```
**MultiProvider** ### ✔️ <a id="user-content-r0s1" href="#r0s1">test/change_notifier_provider_test.dart</a>
|Result|Test|Time| ```
|:---:|:---|---:| ✔️ Use builder property, not child
|✔️|with 1 ChangeNotifierProvider default|9ms| ChangeNotifierProvider
|✔️|with 2 ChangeNotifierProvider default|9ms| ✔️ value
|✔️|with ListenableProvider default|12ms| ✔️ builder
|✔️|with Provider default|8ms| ✔️ builder1
|✔️|with ProxyProvider0|7ms| ✔️ builder2
|✔️|with ProxyProvider1|9ms| ✔️ builder3
|✔️|with ProxyProvider2|7ms| ✔️ builder4
|✔️|with ProxyProvider3|9ms| ✔️ builder5
|✔️|with ProxyProvider4|9ms| ✔️ builder6
|✔️|with ProxyProvider5|7ms| ✔️ builder0
|✔️|with ProxyProvider6|7ms| ```
### <a id="user-content-r0s1" href="#r0s1">test/change_notifier_provider_test.dart</a> ✔️ ### ✔️ <a id="user-content-r0s2" href="#r0s2">test/consumer_test.dart</a>
**10** tests were completed in **306ms** with **10** passed, **0** failed and **0** skipped. ```
consumer
|Result|Test|Time| ✔️ obtains value from Provider<T>
|:---:|:---|---:| ✔️ crashed with no builder
|✔️|Use builder property, not child|10ms| ✔️ can be used inside MultiProvider
consumer2
**ChangeNotifierProvider** ✔️ obtains value from Provider<T>
|Result|Test|Time| ✔️ crashed with no builder
|:---:|:---|---:| ✔️ can be used inside MultiProvider
|✔️|value|185ms| consumer3
|✔️|builder|18ms| ✔️ obtains value from Provider<T>
|✔️|builder1|12ms| ✔️ crashed with no builder
|✔️|builder2|12ms| ✔️ can be used inside MultiProvider
|✔️|builder3|19ms| consumer4
|✔️|builder4|14ms| ✔️ obtains value from Provider<T>
|✔️|builder5|15ms| ✔️ crashed with no builder
|✔️|builder6|11ms| ✔️ can be used inside MultiProvider
|✔️|builder0|10ms| consumer5
### <a id="user-content-r0s2" href="#r0s2">test/consumer_test.dart</a> ✔️ ✔️ obtains value from Provider<T>
**18** tests were completed in **340ms** with **18** passed, **0** failed and **0** skipped. ✔️ crashed with no builder
✔️ can be used inside MultiProvider
**consumer** consumer6
|Result|Test|Time| ✔️ obtains value from Provider<T>
|:---:|:---|---:| ✔️ crashed with no builder
|✔️|obtains value from Provider<T>|181ms| ✔️ can be used inside MultiProvider
|✔️|crashed with no builder|11ms| ```
|✔️|can be used inside MultiProvider|16ms| ### ✔️ <a id="user-content-r0s3" href="#r0s3">test/context_test.dart</a>
```
**consumer2** ✔️ watch in layoutbuilder
|Result|Test|Time| ✔️ select in layoutbuilder
|:---:|:---|---:| ✔️ cannot select in listView
|✔️|obtains value from Provider<T>|22ms| ✔️ watch in listView
|✔️|crashed with no builder|8ms| ✔️ watch in gridView
|✔️|can be used inside MultiProvider|9ms| ✔️ clears select dependencies for all dependents
BuildContext
**consumer3** ✔️ internal selected value is updated
|Result|Test|Time| ✔️ create can use read without being lazy
|:---:|:---|---:| ✔️ watch can be used inside InheritedProvider.update
|✔️|obtains value from Provider<T>|9ms| ✔️ select doesn't fail if it loads a provider that depends on other providers
|✔️|crashed with no builder|7ms| ✔️ don't call old selectors if the child rebuilds individually
|✔️|can be used inside MultiProvider|8ms| ✔️ selects throws inside click handlers
✔️ select throws if try to read dynamic
**consumer4** ✔️ select throws ProviderNotFoundException
|Result|Test|Time| ✔️ select throws if watch called inside the callback from build
|:---:|:---|---:| ✔️ select throws if read called inside the callback from build
|✔️|obtains value from Provider<T>|8ms| ✔️ select throws if select called inside the callback from build
|✔️|crashed with no builder|6ms| ✔️ select throws if read called inside the callback on dependency change
|✔️|can be used inside MultiProvider|8ms| ✔️ select throws if watch called inside the callback on dependency change
✔️ select throws if select called inside the callback on dependency change
**consumer5** ✔️ can call read inside didChangeDependencies
|Result|Test|Time| ✔️ select cannot be called inside didChangeDependencies
|:---:|:---|---:| ✔️ select in initState throws
|✔️|obtains value from Provider<T>|8ms| ✔️ watch in initState throws
|✔️|crashed with no builder|6ms| ✔️ read in initState works
|✔️|can be used inside MultiProvider|9ms| ✔️ consumer can be removed and selector stops to be called
✔️ context.select deeply compares maps
**consumer6** ✔️ context.select deeply compares lists
|Result|Test|Time| ✔️ context.select deeply compares iterables
|:---:|:---|---:| ✔️ context.select deeply compares sets
|✔️|obtains value from Provider<T>|8ms| ✔️ context.watch listens to value changes
|✔️|crashed with no builder|8ms| ```
|✔️|can be used inside MultiProvider|8ms| ### ✔️ <a id="user-content-r0s4" href="#r0s4">test/future_provider_test.dart</a>
### <a id="user-content-r0s3" href="#r0s3">test/context_test.dart</a> ✔️ ```
**31** tests were completed in **698ms** with **31** passed, **0** failed and **0** skipped. ✔️ works with MultiProvider
✔️ (catchError) previous future completes after transition is no-op
|Result|Test|Time| ✔️ previous future completes after transition is no-op
|:---:|:---|---:| ✔️ transition from future to future preserve state
|✔️|watch in layoutbuilder|179ms| ✔️ throws if future has error and catchError is missing
|✔️|select in layoutbuilder|12ms| ✔️ calls catchError if present and future has error
|✔️|cannot select in listView|138ms| ✔️ works with null
|✔️|watch in listView|33ms| ✔️ create and dispose future with builder
|✔️|watch in gridView|21ms| ✔️ FutureProvider() crashes if builder is null
|✔️|clears select dependencies for all dependents|19ms| FutureProvider()
✔️ crashes if builder is null
**BuildContext** ```
|Result|Test|Time| ### ✔️ <a id="user-content-r0s5" href="#r0s5">test/inherited_provider_test.dart</a>
|:---:|:---|---:| ```
|✔️|internal selected value is updated|32ms| ✔️ regression test #377
|✔️|create can use read without being lazy|11ms| ✔️ rebuild on dependency flags update
|✔️|watch can be used inside InheritedProvider.update|10ms| ✔️ properly update debug flags if a create triggers another deferred create
|✔️|select doesn't fail if it loads a provider that depends on other providers|9ms| ✔️ properly update debug flags if a create triggers another deferred create
|✔️|don't call old selectors if the child rebuilds individually|21ms| ✔️ properly update debug flags if an update triggers another create/update
|✔️|selects throws inside click handlers|40ms| ✔️ properly update debug flags if a create triggers another create/update
|✔️|select throws if try to read dynamic|9ms| ✔️ Provider.of(listen: false) outside of build works when it loads a provider
|✔️|select throws ProviderNotFoundException|9ms| ✔️ new value is available in didChangeDependencies
|✔️|select throws if watch called inside the callback from build|6ms| ✔️ builder receives the current value and updates independently from `update`
|✔️|select throws if read called inside the callback from build|9ms| ✔️ builder can _not_ rebuild when provider updates
|✔️|select throws if select called inside the callback from build|8ms| ✔️ builder rebuilds if provider is recreated
|✔️|select throws if read called inside the callback on dependency change|10ms| ✔️ provider.of throws if listen:true outside of the widget tree
|✔️|select throws if watch called inside the callback on dependency change|17ms| ✔️ InheritedProvider throws if no child is provided with default constructor
|✔️|select throws if select called inside the callback on dependency change|9ms| ✔️ InheritedProvider throws if no child is provided with value constructor
|✔️|can call read inside didChangeDependencies|9ms| ✔️ DeferredInheritedProvider throws if no child is provided with default constructor
|✔️|select cannot be called inside didChangeDependencies|6ms| ✔️ DeferredInheritedProvider throws if no child is provided with value constructor
|✔️|select in initState throws|6ms| ✔️ startListening markNeedsNotifyDependents
|✔️|watch in initState throws|10ms| ✔️ InheritedProvider can be subclassed
|✔️|read in initState works|6ms| ✔️ DeferredInheritedProvider can be subclassed
|✔️|consumer can be removed and selector stops to be called|7ms| ✔️ can be used with MultiProvider
|✔️|context.select deeply compares maps|15ms| ✔️ throw if the widget ctor changes
|✔️|context.select deeply compares lists|8ms| ✔️ InheritedProvider lazy loading can be disabled
|✔️|context.select deeply compares iterables|8ms| ✔️ InheritedProvider.value lazy loading can be disabled
|✔️|context.select deeply compares sets|11ms| ✔️ InheritedProvider subclass don't have to specify default lazy value
|✔️|context.watch listens to value changes|10ms| ✔️ DeferredInheritedProvider lazy loading can be disabled
### <a id="user-content-r0s4" href="#r0s4">test/future_provider_test.dart</a> ✔️ ✔️ DeferredInheritedProvider.value lazy loading can be disabled
**10** tests were completed in **305ms** with **10** passed, **0** failed and **0** skipped. ✔️ selector
✔️ can select multiple types from same provider
|Result|Test|Time| ✔️ can select same type on two different providers
|:---:|:---|---:| ✔️ can select same type twice on same provider
|✔️|works with MultiProvider|184ms| ✔️ Provider.of has a proper error message if context is null
|✔️|(catchError) previous future completes after transition is no-op|16ms| diagnostics
|✔️|previous future completes after transition is no-op|15ms| ✔️ InheritedProvider.value
|✔️|transition from future to future preserve state|12ms| ✔️ InheritedProvider doesn't break lazy loading
|✔️|throws if future has error and catchError is missing|24ms| ✔️ InheritedProvider show if listening
|✔️|calls catchError if present and future has error|21ms| ✔️ DeferredInheritedProvider.value
|✔️|works with null|14ms| ✔️ DeferredInheritedProvider
|✔️|create and dispose future with builder|12ms| InheritedProvider.value()
|✔️|FutureProvider() crashes if builder is null|4ms| ✔️ markNeedsNotifyDependents during startListening is noop
✔️ startListening called again when create returns new value
**FutureProvider()** ✔️ startListening
|Result|Test|Time| ✔️ stopListening not called twice if rebuild doesn't have listeners
|:---:|:---|---:| ✔️ removeListener cannot be null
|✔️|crashes if builder is null|3ms| ✔️ pass down current value
### <a id="user-content-r0s5" href="#r0s5">test/inherited_provider_test.dart</a> ✔️ ✔️ default updateShouldNotify
**81** tests were completed in **1.117s** with **81** passed, **0** failed and **0** skipped. ✔️ custom updateShouldNotify
InheritedProvider()
|Result|Test|Time| ✔️ hasValue
|:---:|:---|---:| ✔️ provider calls update if rebuilding only due to didChangeDependencies
|✔️|regression test #377|167ms| ✔️ provider notifying dependents doesn't call update
|✔️|rebuild on dependency flags update|15ms| ✔️ update can call Provider.of with listen:true
|✔️|properly update debug flags if a create triggers another deferred create|9ms| ✔️ update lazy loaded can call Provider.of with listen:true
|✔️|properly update debug flags if a create triggers another deferred create|8ms| ✔️ markNeedsNotifyDependents during startListening is noop
|✔️|properly update debug flags if an update triggers another create/update|7ms| ✔️ update can obtain parent of the same type than self
|✔️|properly update debug flags if a create triggers another create/update|8ms| ✔️ _debugCheckInvalidValueType
|✔️|Provider.of(listen: false) outside of build works when it loads a provider|22ms| ✔️ startListening
|✔️|new value is available in didChangeDependencies|26ms| ✔️ startListening called again when create returns new value
|✔️|builder receives the current value and updates independently from `update`|16ms| ✔️ stopListening not called twice if rebuild doesn't have listeners
|✔️|builder can _not_ rebuild when provider updates|8ms| ✔️ removeListener cannot be null
|✔️|builder rebuilds if provider is recreated|9ms| ✔️ fails if initialValueBuilder calls inheritFromElement/inheritFromWiggetOfExactType
|✔️|provider.of throws if listen:true outside of the widget tree|23ms| ✔️ builder is called on every rebuild and after a dependency change
|✔️|InheritedProvider throws if no child is provided with default constructor|14ms| ✔️ builder with no updateShouldNotify use ==
|✔️|InheritedProvider throws if no child is provided with value constructor|8ms| ✔️ builder calls updateShouldNotify callback
|✔️|DeferredInheritedProvider throws if no child is provided with default constructor|15ms| ✔️ initialValue is transmitted to valueBuilder
|✔️|DeferredInheritedProvider throws if no child is provided with value constructor|7ms| ✔️ calls builder again if dependencies change
|✔️|startListening markNeedsNotifyDependents|7ms| ✔️ exposes initialValue if valueBuilder is null
|✔️|InheritedProvider can be subclassed|8ms| ✔️ call dispose on unmount
|✔️|DeferredInheritedProvider can be subclassed|7ms| ✔️ builder unmount, dispose not called if value never read
|✔️|can be used with MultiProvider|8ms| ✔️ call dispose after new value
|✔️|throw if the widget ctor changes|8ms| ✔️ valueBuilder works without initialBuilder
|✔️|InheritedProvider lazy loading can be disabled|6ms| ✔️ calls initialValueBuilder lazily once
|✔️|InheritedProvider.value lazy loading can be disabled|9ms| ✔️ throws if both builder and initialBuilder are missing
|✔️|InheritedProvider subclass don't have to specify default lazy value|7ms| DeferredInheritedProvider.value()
|✔️|DeferredInheritedProvider lazy loading can be disabled|7ms| ✔️ hasValue
|✔️|DeferredInheritedProvider.value lazy loading can be disabled|7ms| ✔️ startListening
|✔️|selector|14ms| ✔️ stopListening cannot be null
|✔️|can select multiple types from same provider|9ms| ✔️ startListening doesn't need setState if already initialized
|✔️|can select same type on two different providers|8ms| ✔️ setState without updateShouldNotify
|✔️|can select same type twice on same provider|10ms| ✔️ setState with updateShouldNotify
|✔️|Provider.of has a proper error message if context is null|6ms| ✔️ startListening never leave the widget uninitialized
✔️ startListening called again on controller change
**diagnostics** DeferredInheritedProvider()
|Result|Test|Time| ✔️ create can't call inherited widgets
|:---:|:---|---:| ✔️ creates the value lazily
|✔️|InheritedProvider.value|11ms| ✔️ dispose
|✔️|InheritedProvider doesn't break lazy loading|7ms| ✔️ dispose no-op if never built
|✔️|InheritedProvider show if listening|7ms| ```
|✔️|DeferredInheritedProvider.value|6ms| ### ✔️ <a id="user-content-r0s6" href="#r0s6">test/listenable_provider_test.dart</a>
|✔️|DeferredInheritedProvider|16ms| ```
ListenableProvider
**InheritedProvider.value()** ✔️ works with MultiProvider
|Result|Test|Time| ✔️ asserts that the created notifier can have listeners
|:---:|:---|---:| ✔️ don't listen again if listenable instance doesn't change
|✔️|markNeedsNotifyDependents during startListening is noop|8ms| ✔️ works with null (default)
|✔️|startListening called again when create returns new value|27ms| ✔️ works with null (create)
|✔️|startListening|19ms| ✔️ stateful create called once
|✔️|stopListening not called twice if rebuild doesn't have listeners|16ms| ✔️ dispose called on unmount
|✔️|removeListener cannot be null|22ms| ✔️ dispose can be null
|✔️|pass down current value|17ms| ✔️ changing listenable rebuilds descendants
|✔️|default updateShouldNotify|8ms| ✔️ rebuilding with the same provider don't rebuilds descendants
|✔️|custom updateShouldNotify|32ms| ✔️ notifylistener rebuilds descendants
ListenableProvider value constructor
**InheritedProvider()** ✔️ pass down key
|Result|Test|Time| ✔️ changing the Listenable instance rebuilds dependents
|:---:|:---|---:| ListenableProvider stateful constructor
|✔️|hasValue|16ms| ✔️ called with context
|✔️|provider calls update if rebuilding only due to didChangeDependencies|9ms| ✔️ pass down key
|✔️|provider notifying dependents doesn't call update|11ms| ✔️ throws if create is null
|✔️|update can call Provider.of with listen:true|7ms| ```
|✔️|update lazy loaded can call Provider.of with listen:true|10ms| ### ✔️ <a id="user-content-r0s7" href="#r0s7">test/listenable_proxy_provider_test.dart</a>
|✔️|markNeedsNotifyDependents during startListening is noop|22ms| ```
|✔️|update can obtain parent of the same type than self|15ms| ListenableProxyProvider
|✔️|_debugCheckInvalidValueType|22ms| ✔️ throws if update is missing
|✔️|startListening|18ms| ✔️ asserts that the created notifier has no listener
|✔️|startListening called again when create returns new value|20ms| ✔️ asserts that the created notifier has no listener after rebuild
|✔️|stopListening not called twice if rebuild doesn't have listeners|18ms| ✔️ rebuilds dependendents when listeners are called
|✔️|removeListener cannot be null|16ms| ✔️ update returning a new Listenable disposes the previously created value and update dependents
|✔️|fails if initialValueBuilder calls inheritFromElement/inheritFromWiggetOfExactType|17ms| ✔️ disposes of created value
|✔️|builder is called on every rebuild and after a dependency change|11ms| ListenableProxyProvider variants
|✔️|builder with no updateShouldNotify use ==|8ms| ✔️ ListenableProxyProvider
|✔️|builder calls updateShouldNotify callback|8ms| ✔️ ListenableProxyProvider2
|✔️|initialValue is transmitted to valueBuilder|8ms| ✔️ ListenableProxyProvider3
|✔️|calls builder again if dependencies change|22ms| ✔️ ListenableProxyProvider4
|✔️|exposes initialValue if valueBuilder is null|20ms| ✔️ ListenableProxyProvider5
|✔️|call dispose on unmount|22ms| ✔️ ListenableProxyProvider6
|✔️|builder unmount, dispose not called if value never read|11ms| ```
|✔️|call dispose after new value|9ms| ### ✔️ <a id="user-content-r0s8" href="#r0s8">test/multi_provider_test.dart</a>
|✔️|valueBuilder works without initialBuilder|11ms| ```
|✔️|calls initialValueBuilder lazily once|7ms| MultiProvider
|✔️|throws if both builder and initialBuilder are missing|5ms| ✔️ throw if providers is null
✔️ MultiProvider children can only access parent providers
**DeferredInheritedProvider.value()** ✔️ MultiProvider.providers with ignored child
|Result|Test|Time| ```
|:---:|:---|---:| ### ✔️ <a id="user-content-r0s9" href="#r0s9">test/provider_test.dart</a>
|✔️|hasValue|6ms| ```
|✔️|startListening|9ms| ✔️ works with MultiProvider
|✔️|stopListening cannot be null|9ms| Provider.of
|✔️|startListening doesn't need setState if already initialized|8ms| ✔️ throws if T is dynamic
|✔️|setState without updateShouldNotify|8ms| ✔️ listen defaults to true when building widgets
|✔️|setState with updateShouldNotify|9ms| ✔️ listen defaults to false outside of the widget tree
|✔️|startListening never leave the widget uninitialized|8ms| ✔️ listen:false doesn't trigger rebuild
|✔️|startListening called again on controller change|10ms| ✔️ listen:true outside of the widget tree throws
Provider
**DeferredInheritedProvider()** ✔️ throws if the provided value is a Listenable/Stream
|Result|Test|Time| ✔️ debugCheckInvalidValueType can be disabled
|:---:|:---|---:| ✔️ simple usage
|✔️|create can't call inherited widgets|7ms| ✔️ throws an error if no provider found
|✔️|creates the value lazily|7ms| ✔️ update should notify
|✔️|dispose|7ms| ```
|✔️|dispose no-op if never built|7ms| ### ✔️ <a id="user-content-r0s10" href="#r0s10">test/proxy_provider_test.dart</a>
### <a id="user-content-r0s6" href="#r0s6">test/listenable_provider_test.dart</a> ✔️ ```
**16** tests were completed in **353ms** with **16** passed, **0** failed and **0** skipped. ProxyProvider
✔️ throws if the provided value is a Listenable/Stream
**ListenableProvider** ✔️ debugCheckInvalidValueType can be disabled
|Result|Test|Time| ✔️ create creates initial value
|:---:|:---|---:| ✔️ consume another providers
|✔️|works with MultiProvider|173ms| ✔️ rebuild descendants if value change
|✔️|asserts that the created notifier can have listeners|12ms| ✔️ call dispose when unmounted with the latest result
|✔️|don't listen again if listenable instance doesn't change|12ms| ✔️ don't rebuild descendants if value doesn't change
|✔️|works with null (default)|7ms| ✔️ pass down updateShouldNotify
|✔️|works with null (create)|7ms| ✔️ works with MultiProvider
|✔️|stateful create called once|11ms| ✔️ update callback can trigger descendants setState synchronously
|✔️|dispose called on unmount|13ms| ✔️ throws if update is null
|✔️|dispose can be null|8ms| ProxyProvider variants
|✔️|changing listenable rebuilds descendants|12ms| ✔️ ProxyProvider2
|✔️|rebuilding with the same provider don't rebuilds descendants|11ms| ✔️ ProxyProvider3
|✔️|notifylistener rebuilds descendants|9ms| ✔️ ProxyProvider4
✔️ ProxyProvider5
**ListenableProvider value constructor** ✔️ ProxyProvider6
|Result|Test|Time| ```
|:---:|:---|---:| ### ✔️ <a id="user-content-r0s11" href="#r0s11">test/reassemble_test.dart</a>
|✔️|pass down key|17ms| ```
|✔️|changing the Listenable instance rebuilds dependents|29ms| ✔️ ReassembleHandler
✔️ unevaluated create
**ListenableProvider stateful constructor** ✔️ unevaluated create
|Result|Test|Time| ```
|:---:|:---|---:| ### ✔️ <a id="user-content-r0s12" href="#r0s12">test/selector_test.dart</a>
|✔️|called with context|8ms| ```
|✔️|pass down key|20ms| ✔️ asserts that builder/selector are not null
|✔️|throws if create is null|4ms| ✔️ Deep compare maps by default
### <a id="user-content-r0s7" href="#r0s7">test/listenable_proxy_provider_test.dart</a> ✔️ ✔️ Deep compare iterables by default
**12** tests were completed in **373ms** with **12** passed, **0** failed and **0** skipped. ✔️ Deep compare sets by default
✔️ Deep compare lists by default
**ListenableProxyProvider** ✔️ custom shouldRebuid
|Result|Test|Time| ✔️ passes `child` and `key`
|:---:|:---|---:| ✔️ calls builder if the callback changes
|✔️|throws if update is missing|43ms| ✔️ works with MultiProvider
|✔️|asserts that the created notifier has no listener|177ms| ✔️ don't call builder again if it rebuilds but selector returns the same thing
|✔️|asserts that the created notifier has no listener after rebuild|18ms| ✔️ call builder again if it rebuilds abd selector returns the a different variable
|✔️|rebuilds dependendents when listeners are called|20ms| ✔️ Selector
|✔️|update returning a new Listenable disposes the previously created value and update dependents|25ms| ✔️ Selector2
|✔️|disposes of created value|13ms| ✔️ Selector3
✔️ Selector4
**ListenableProxyProvider variants** ✔️ Selector5
|Result|Test|Time| ✔️ Selector6
|:---:|:---|---:| ```
|✔️|ListenableProxyProvider|13ms| ### ✔️ <a id="user-content-r0s13" href="#r0s13">test/stateful_provider_test.dart</a>
|✔️|ListenableProxyProvider2|9ms| ```
|✔️|ListenableProxyProvider3|9ms| ✔️ asserts
|✔️|ListenableProxyProvider4|17ms| ✔️ works with MultiProvider
|✔️|ListenableProxyProvider5|12ms| ✔️ calls create only once
|✔️|ListenableProxyProvider6|17ms| ✔️ dispose
### <a id="user-content-r0s8" href="#r0s8">test/multi_provider_test.dart</a> ✔️ ```
**3** tests were completed in **198ms** with **3** passed, **0** failed and **0** skipped. ### ✔️ <a id="user-content-r0s14" href="#r0s14">test/stream_provider_test.dart</a>
```
**MultiProvider** ✔️ works with MultiProvider
|Result|Test|Time| ✔️ transition from stream to stream preserve state
|:---:|:---|---:| ✔️ throws if stream has error and catchError is missing
|✔️|throw if providers is null|30ms| ✔️ calls catchError if present and stream has error
|✔️|MultiProvider children can only access parent providers|160ms| ✔️ works with null
|✔️|MultiProvider.providers with ignored child|8ms| ✔️ StreamProvider() crashes if builder is null
### <a id="user-content-r0s9" href="#r0s9">test/provider_test.dart</a> ✔️ StreamProvider()
**11** tests were completed in **306ms** with **11** passed, **0** failed and **0** skipped. ✔️ create and dispose stream with builder
✔️ crashes if builder is null
|Result|Test|Time| ```
|:---:|:---|---:| ### ❌ <a id="user-content-r0s15" href="#r0s15">test/value_listenable_provider_test.dart</a>
|✔️|works with MultiProvider|172ms| ```
valueListenableProvider
**Provider.of** ✔️ rebuilds when value change
|Result|Test|Time| ✔️ don't rebuild dependents by default
|:---:|:---|---:| ✔️ pass keys
|✔️|throws if T is dynamic|26ms| ✔️ don't listen again if stream instance doesn't change
|✔️|listen defaults to true when building widgets|13ms| ❌ pass updateShouldNotify
|✔️|listen defaults to false outside of the widget tree|9ms| The following TestFailure object was thrown running a test:
|✔️|listen:false doesn't trigger rebuild|10ms| Expected: <2>
|✔️|listen:true outside of the widget tree throws|11ms| Actual: <1>
Unexpected number of calls
**Provider**
|Result|Test|Time| ```
|:---:|:---|---:|
|✔️|throws if the provided value is a Listenable/Stream|28ms|
|✔️|debugCheckInvalidValueType can be disabled|9ms|
|✔️|simple usage|9ms|
|✔️|throws an error if no provider found|11ms|
|✔️|update should notify|8ms|
### <a id="user-content-r0s10" href="#r0s10">test/proxy_provider_test.dart</a> ✔️
**16** tests were completed in **438ms** with **16** passed, **0** failed and **0** skipped.
**ProxyProvider**
|Result|Test|Time|
|:---:|:---|---:|
|✔️|throws if the provided value is a Listenable/Stream|209ms|
|✔️|debugCheckInvalidValueType can be disabled|13ms|
|✔️|create creates initial value|23ms|
|✔️|consume another providers|18ms|
|✔️|rebuild descendants if value change|13ms|
|✔️|call dispose when unmounted with the latest result|11ms|
|✔️|don't rebuild descendants if value doesn't change|12ms|
|✔️|pass down updateShouldNotify|19ms|
|✔️|works with MultiProvider|16ms|
|✔️|update callback can trigger descendants setState synchronously|24ms|
|✔️|throws if update is null|7ms|
**ProxyProvider variants**
|Result|Test|Time|
|:---:|:---|---:|
|✔️|ProxyProvider2|18ms|
|✔️|ProxyProvider3|16ms|
|✔️|ProxyProvider4|9ms|
|✔️|ProxyProvider5|20ms|
|✔️|ProxyProvider6|10ms|
### <a id="user-content-r0s11" href="#r0s11">test/reassemble_test.dart</a> ✔️
**3** tests were completed in **221ms** with **3** passed, **0** failed and **0** skipped.
|Result|Test|Time|
|:---:|:---|---:|
|✔️|ReassembleHandler|194ms|
|✔️|unevaluated create|11ms|
|✔️|unevaluated create|16ms|
### <a id="user-content-r0s12" href="#r0s12">test/selector_test.dart</a> ✔️
**17** tests were completed in **364ms** with **17** passed, **0** failed and **0** skipped.
|Result|Test|Time|
|:---:|:---|---:|
|✔️|asserts that builder/selector are not null|32ms|
|✔️|Deep compare maps by default|158ms|
|✔️|Deep compare iterables by default|9ms|
|✔️|Deep compare sets by default|12ms|
|✔️|Deep compare lists by default|14ms|
|✔️|custom shouldRebuid|11ms|
|✔️|passes `child` and `key`|13ms|
|✔️|calls builder if the callback changes|14ms|
|✔️|works with MultiProvider|12ms|
|✔️|don't call builder again if it rebuilds but selector returns the same thing|9ms|
|✔️|call builder again if it rebuilds abd selector returns the a different variable|9ms|
|✔️|Selector|15ms|
|✔️|Selector2|9ms|
|✔️|Selector3|8ms|
|✔️|Selector4|9ms|
|✔️|Selector5|19ms|
|✔️|Selector6|11ms|
### <a id="user-content-r0s13" href="#r0s13">test/stateful_provider_test.dart</a> ✔️
**4** tests were completed in **254ms** with **4** passed, **0** failed and **0** skipped.
|Result|Test|Time|
|:---:|:---|---:|
|✔️|asserts|6ms|
|✔️|works with MultiProvider|203ms|
|✔️|calls create only once|27ms|
|✔️|dispose|18ms|
### <a id="user-content-r0s14" href="#r0s14">test/stream_provider_test.dart</a> ✔️
**8** tests were completed in **282ms** with **8** passed, **0** failed and **0** skipped.
|Result|Test|Time|
|:---:|:---|---:|
|✔️|works with MultiProvider|191ms|
|✔️|transition from stream to stream preserve state|16ms|
|✔️|throws if stream has error and catchError is missing|22ms|
|✔️|calls catchError if present and stream has error|20ms|
|✔️|works with null|13ms|
|✔️|StreamProvider() crashes if builder is null|5ms|
**StreamProvider()**
|Result|Test|Time|
|:---:|:---|---:|
|✔️|create and dispose stream with builder|11ms|
|✔️|crashes if builder is null|4ms|
### <a id="user-content-r0s15" href="#r0s15">test/value_listenable_provider_test.dart</a>
**5** tests were completed in **327ms** with **4** passed, **1** failed and **0** skipped.
**valueListenableProvider**
|Result|Test|Time|
|:---:|:---|---:|
|✔️|rebuilds when value change|200ms|
|✔️|don't rebuild dependents by default|26ms|
|✔️|pass keys|10ms|
|✔️|don't listen again if stream instance doesn't change|22ms|
|❌|pass updateShouldNotify|69ms|

View file

@ -1,13 +1,12 @@
![Tests failed](https://img.shields.io/badge/tests-1%20failed%2C%201%20skipped-critical) ![Tests failed](https://img.shields.io/badge/tests-1%20failed%2C%201%20skipped-critical)
## <a id="user-content-r0" href="#r0">fixtures/external/java/TEST-org.apache.pulsar.AddMissingPatchVersionTest.xml</a> ## <a id="user-content-r0" href="#r0">fixtures/external/java/TEST-org.apache.pulsar.AddMissingPatchVersionTest.xml</a>
**2** tests were completed in **116ms** with **0** passed, **1** failed and **1** skipped. **2** tests were completed in **116ms** with **0** passed, **1** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time| |Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:| |:---|---:|---:|---:|---:|
|[org.apache.pulsar.AddMissingPatchVersionTest](#r0s0)||1❌|1✖|116ms| |[org.apache.pulsar.AddMissingPatchVersionTest](#r0s0)||1❌|1✖|116ms|
### <a id="user-content-r0s0" href="#r0s0">org.apache.pulsar.AddMissingPatchVersionTest</a> ### ❌ <a id="user-content-r0s0" href="#r0s0">org.apache.pulsar.AddMissingPatchVersionTest</a>
**2** tests were completed in **116ms** with **0** passed, **1** failed and **1** skipped. ```
✖️ testVersionStrings
|Result|Test|Time| ❌ testVersionStrings
|:---:|:---|---:| java.lang.AssertionError: expected [1.2.1] but found [1.2.0]
|✖️|testVersionStrings|99ms| ```
|❌|testVersionStrings|17ms|

File diff suppressed because it is too large Load diff

116
dist/index.js generated vendored
View file

@ -1111,6 +1111,7 @@ exports.JestJunitParser = JestJunitParser;
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getAnnotations = void 0; exports.getAnnotations = void 0;
const markdown_utils_1 = __nccwpck_require__(6482); const markdown_utils_1 = __nccwpck_require__(6482);
const parse_utils_1 = __nccwpck_require__(7811);
function getAnnotations(results, maxCount) { function getAnnotations(results, maxCount) {
var _a, _b, _c, _d; var _a, _b, _c, _d;
if (maxCount === 0) { if (maxCount === 0) {
@ -1142,7 +1143,7 @@ function getAnnotations(results, maxCount) {
suiteName: ts.name, suiteName: ts.name,
testName: tc.name, testName: tc.name,
details: err.details, details: err.details,
message: (_d = (_c = err.message) !== null && _c !== void 0 ? _c : getFirstNonEmptyLine(err.details)) !== null && _d !== void 0 ? _d : 'Test failed', message: (_d = (_c = err.message) !== null && _c !== void 0 ? _c : parse_utils_1.getFirstNonEmptyLine(err.details)) !== null && _d !== void 0 ? _d : 'Test failed',
path, path,
line line
}); });
@ -1180,10 +1181,6 @@ function enforceCheckRunLimits(err) {
} }
return err; return err;
} }
function getFirstNonEmptyLine(stackTrace) {
const lines = stackTrace.split(/\r?\n/g);
return lines.find(str => !/^\s*$/.test(str));
}
function ident(text, prefix) { function ident(text, prefix) {
return text return text
.split(/\n/g) .split(/\n/g)
@ -1222,50 +1219,61 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getReport = void 0; exports.getReport = void 0;
const core = __importStar(__nccwpck_require__(2186)); const core = __importStar(__nccwpck_require__(2186));
const markdown_utils_1 = __nccwpck_require__(6482); const markdown_utils_1 = __nccwpck_require__(6482);
const parse_utils_1 = __nccwpck_require__(7811);
const slugger_1 = __nccwpck_require__(3328); const slugger_1 = __nccwpck_require__(3328);
const MAX_REPORT_LENGTH = 65535;
const defaultOptions = { const defaultOptions = {
listSuites: 'all', listSuites: 'all',
listTests: 'all' listTests: 'all'
}; };
function getReport(results, options = defaultOptions) { function getReport(results, options = defaultOptions) {
core.info('Generating check run summary'); core.info('Generating check run summary');
const maxReportLength = 65535;
applySort(results); applySort(results);
const opts = { ...options }; const opts = { ...options };
let report = renderReport(results, opts); let lines = renderReport(results, opts);
if (getByteLength(report) <= maxReportLength) { let report = lines.join('\n');
if (getByteLength(report) <= MAX_REPORT_LENGTH) {
return report; return report;
} }
if (opts.listTests === 'all') { if (opts.listTests === 'all') {
core.info("Test report summary is too big - setting 'listTests' to 'failed'"); core.info("Test report summary is too big - setting 'listTests' to 'failed'");
opts.listTests = 'failed'; opts.listTests = 'failed';
report = renderReport(results, opts); lines = renderReport(results, opts);
if (getByteLength(report) <= maxReportLength) { report = lines.join('\n');
if (getByteLength(report) <= MAX_REPORT_LENGTH) {
return report; return report;
} }
} }
if (opts.listSuites === 'all') { core.warning(`Test report summary exceeded limit of ${MAX_REPORT_LENGTH} bytes and will be trimmed`);
core.info("Test report summary is too big - setting 'listSuites' to 'failed'"); return trimReport(lines);
opts.listSuites = 'failed';
report = renderReport(results, opts);
if (getByteLength(report) <= maxReportLength) {
return report;
}
}
if (opts.listTests !== 'none') {
core.info("Test report summary is too big - setting 'listTests' to 'none'");
opts.listTests = 'none';
report = renderReport(results, opts);
if (getByteLength(report) <= maxReportLength) {
return report;
}
}
core.warning(`Test report summary exceeded limit of ${maxReportLength} bytes`);
const badge = getReportBadge(results);
const msg = `**Test report summary exceeded limit of ${maxReportLength} bytes and was removed**`;
return `${badge}\n${msg}`;
} }
exports.getReport = getReport; exports.getReport = getReport;
function trimReport(lines) {
const closingBlock = '```';
const errorMsg = `**Report exceeded GitHub limit of ${MAX_REPORT_LENGTH} bytes and has been trimmed**`;
const maxErrorMsgLength = closingBlock.length + errorMsg.length + 2;
const maxReportLength = MAX_REPORT_LENGTH - maxErrorMsgLength;
let reportLength = 0;
let codeBlock = false;
let endLineIndex = 0;
for (endLineIndex = 0; endLineIndex < lines.length; endLineIndex++) {
const line = lines[endLineIndex];
const lineLength = getByteLength(line);
reportLength += lineLength + 1;
if (reportLength > maxReportLength) {
break;
}
if (line === '```') {
codeBlock = !codeBlock;
}
}
const reportLines = lines.slice(0, endLineIndex);
if (codeBlock) {
reportLines.push('```');
}
reportLines.push(errorMsg);
return reportLines.join('\n');
}
function applySort(results) { function applySort(results) {
results.sort((a, b) => a.path.localeCompare(b.path)); results.sort((a, b) => a.path.localeCompare(b.path));
for (const res of results) { for (const res of results) {
@ -1281,7 +1289,7 @@ function renderReport(results, options) {
sections.push(badge); sections.push(badge);
const runs = getTestRunsReport(results, options); const runs = getTestRunsReport(results, options);
sections.push(...runs); sections.push(...runs);
return sections.join('\n'); return sections;
} }
function getReportBadge(results) { function getReportBadge(results) {
const passed = results.reduce((sum, tr) => sum + tr.passed, 0); const passed = results.reduce((sum, tr) => sum + tr.passed, 0);
@ -1337,7 +1345,7 @@ function getSuitesReport(tr, runIndex, options) {
const trSlug = makeRunSlug(runIndex); const trSlug = makeRunSlug(runIndex);
const nameLink = `<a id="${trSlug.id}" href="${trSlug.link}">${tr.path}</a>`; const nameLink = `<a id="${trSlug.id}" href="${trSlug.link}">${tr.path}</a>`;
const icon = getResultIcon(tr.result); const icon = getResultIcon(tr.result);
sections.push(`## ${nameLink} ${icon}`); sections.push(`## ${icon} ${nameLink}`);
const time = markdown_utils_1.formatTime(tr.time); const time = markdown_utils_1.formatTime(tr.time);
const headingLine2 = tr.tests > 0 const headingLine2 = tr.tests > 0
? `**${tr.tests}** tests were completed in **${time}** with **${tr.passed}** passed, **${tr.failed}** failed and **${tr.skipped}** skipped.` ? `**${tr.tests}** tests were completed in **${time}** with **${tr.passed}** passed, **${tr.failed}** failed and **${tr.skipped}** skipped.`
@ -1367,7 +1375,11 @@ function getSuitesReport(tr, runIndex, options) {
return sections; return sections;
} }
function getTestsReport(ts, runIndex, suiteIndex, options) { function getTestsReport(ts, runIndex, suiteIndex, options) {
const groups = options.listTests === 'failed' ? ts.failedGroups : ts.groups; var _a, _b, _c;
if (options.listTests === 'failed' && ts.result !== 'failed') {
return [];
}
const groups = ts.groups;
if (groups.length === 0) { if (groups.length === 0) {
return []; return [];
} }
@ -1376,24 +1388,25 @@ function getTestsReport(ts, runIndex, suiteIndex, options) {
const tsSlug = makeSuiteSlug(runIndex, suiteIndex); const tsSlug = makeSuiteSlug(runIndex, suiteIndex);
const tsNameLink = `<a id="${tsSlug.id}" href="${tsSlug.link}">${tsName}</a>`; const tsNameLink = `<a id="${tsSlug.id}" href="${tsSlug.link}">${tsName}</a>`;
const icon = getResultIcon(ts.result); const icon = getResultIcon(ts.result);
sections.push(`### ${tsNameLink} ${icon}`); sections.push(`### ${icon} ${tsNameLink}`);
const tsTime = markdown_utils_1.formatTime(ts.time); sections.push('```');
const headingLine2 = `**${ts.tests}** tests were completed in **${tsTime}** with **${ts.passed}** passed, **${ts.failed}** failed and **${ts.skipped}** skipped.`;
sections.push(headingLine2);
for (const grp of groups) { for (const grp of groups) {
const tests = options.listTests === 'failed' ? grp.failedTests : grp.tests; if (grp.name) {
if (tests.length === 0) { sections.push(grp.name);
continue;
} }
const grpHeader = grp.name ? `\n**${grp.name}**` : ''; const space = grp.name ? ' ' : '';
const testsTable = markdown_utils_1.table(['Result', 'Test', 'Time'], [markdown_utils_1.Align.Center, markdown_utils_1.Align.Left, markdown_utils_1.Align.Right], ...grp.tests.map(tc => { for (const tc of grp.tests) {
const name = tc.name;
const time = markdown_utils_1.formatTime(tc.time);
const result = getResultIcon(tc.result); const result = getResultIcon(tc.result);
return [result, name, time]; sections.push(`${space}${result} ${tc.name}`);
})); if (tc.error) {
sections.push(grpHeader, testsTable); const lines = (_c = ((_a = tc.error.message) !== null && _a !== void 0 ? _a : (_b = parse_utils_1.getFirstNonEmptyLine(tc.error.details)) === null || _b === void 0 ? void 0 : _b.trim())) === null || _c === void 0 ? void 0 : _c.split(/\r?\n/g).map(l => '\t' + l);
if (lines) {
sections.push(...lines);
}
}
}
} }
sections.push('```');
return sections; return sections;
} }
function makeRunSlug(runIndex) { function makeRunSlug(runIndex) {
@ -1799,7 +1812,7 @@ function ellipsis(text, maxLength) {
exports.ellipsis = ellipsis; exports.ellipsis = ellipsis;
function formatTime(ms) { function formatTime(ms) {
if (ms > 1000) { if (ms > 1000) {
return `${(ms / 1000).toFixed(3)}s`; return `${Math.round(ms / 1000)}s`;
} }
return `${Math.round(ms)}ms`; return `${Math.round(ms)}ms`;
} }
@ -1814,7 +1827,7 @@ exports.formatTime = formatTime;
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.parseIsoDate = exports.parseNetDuration = void 0; exports.getFirstNonEmptyLine = exports.parseIsoDate = exports.parseNetDuration = void 0;
function parseNetDuration(str) { function parseNetDuration(str) {
const durationRe = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)$/; const durationRe = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)$/;
const durationMatch = str.match(durationRe); const durationMatch = str.match(durationRe);
@ -1833,6 +1846,11 @@ function parseIsoDate(str) {
return new Date(str); return new Date(str);
} }
exports.parseIsoDate = parseIsoDate; exports.parseIsoDate = parseIsoDate;
function getFirstNonEmptyLine(stackTrace) {
const lines = stackTrace.split(/\r?\n/g);
return lines.find(str => !/^\s*$/.test(str));
}
exports.getFirstNonEmptyLine = getFirstNonEmptyLine;
/***/ }), /***/ }),

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,6 @@
import {ellipsis, fixEol} from '../utils/markdown-utils' import {ellipsis, fixEol} from '../utils/markdown-utils'
import {TestRunResult} from '../test-results' import {TestRunResult} from '../test-results'
import {getFirstNonEmptyLine} from '../utils/parse-utils'
type Annotation = { type Annotation = {
path: string path: string
@ -98,11 +99,6 @@ function enforceCheckRunLimits(err: Annotation): Annotation {
return err return err
} }
function getFirstNonEmptyLine(stackTrace: string): string | undefined {
const lines = stackTrace.split(/\r?\n/g)
return lines.find(str => !/^\s*$/.test(str))
}
function ident(text: string, prefix: string): string { function ident(text: string, prefix: string): string {
return text return text
.split(/\n/g) .split(/\n/g)

View file

@ -1,8 +1,11 @@
import * as core from '@actions/core' import * as core from '@actions/core'
import {TestExecutionResult, TestRunResult, TestSuiteResult} from '../test-results' import {TestExecutionResult, TestRunResult, TestSuiteResult} from '../test-results'
import {Align, formatTime, Icon, link, table} from '../utils/markdown-utils' import {Align, formatTime, Icon, link, table} from '../utils/markdown-utils'
import {getFirstNonEmptyLine} from '../utils/parse-utils'
import {slug} from '../utils/slugger' import {slug} from '../utils/slugger'
const MAX_REPORT_LENGTH = 65535
export interface ReportOptions { export interface ReportOptions {
listSuites: 'all' | 'failed' listSuites: 'all' | 'failed'
listTests: 'all' | 'failed' | 'none' listTests: 'all' | 'failed' | 'none'
@ -16,46 +19,59 @@ const defaultOptions: ReportOptions = {
export function getReport(results: TestRunResult[], options: ReportOptions = defaultOptions): string { export function getReport(results: TestRunResult[], options: ReportOptions = defaultOptions): string {
core.info('Generating check run summary') core.info('Generating check run summary')
const maxReportLength = 65535
applySort(results) applySort(results)
const opts = {...options} const opts = {...options}
let report = renderReport(results, opts) let lines = renderReport(results, opts)
if (getByteLength(report) <= maxReportLength) { let report = lines.join('\n')
if (getByteLength(report) <= MAX_REPORT_LENGTH) {
return report return report
} }
if (opts.listTests === 'all') { if (opts.listTests === 'all') {
core.info("Test report summary is too big - setting 'listTests' to 'failed'") core.info("Test report summary is too big - setting 'listTests' to 'failed'")
opts.listTests = 'failed' opts.listTests = 'failed'
report = renderReport(results, opts) lines = renderReport(results, opts)
if (getByteLength(report) <= maxReportLength) { report = lines.join('\n')
if (getByteLength(report) <= MAX_REPORT_LENGTH) {
return report return report
} }
} }
if (opts.listSuites === 'all') { core.warning(`Test report summary exceeded limit of ${MAX_REPORT_LENGTH} bytes and will be trimmed`)
core.info("Test report summary is too big - setting 'listSuites' to 'failed'") return trimReport(lines)
opts.listSuites = 'failed' }
report = renderReport(results, opts)
if (getByteLength(report) <= maxReportLength) { function trimReport(lines: string[]): string {
return report const closingBlock = '```'
const errorMsg = `**Report exceeded GitHub limit of ${MAX_REPORT_LENGTH} bytes and has been trimmed**`
const maxErrorMsgLength = closingBlock.length + errorMsg.length + 2
const maxReportLength = MAX_REPORT_LENGTH - maxErrorMsgLength
let reportLength = 0
let codeBlock = false
let endLineIndex = 0
for (endLineIndex = 0; endLineIndex < lines.length; endLineIndex++) {
const line = lines[endLineIndex]
const lineLength = getByteLength(line)
reportLength += lineLength + 1
if (reportLength > maxReportLength) {
break
}
if (line === '```') {
codeBlock = !codeBlock
} }
} }
if (opts.listTests !== 'none') { const reportLines = lines.slice(0, endLineIndex)
core.info("Test report summary is too big - setting 'listTests' to 'none'") if (codeBlock) {
opts.listTests = 'none' reportLines.push('```')
report = renderReport(results, opts)
if (getByteLength(report) <= maxReportLength) {
return report
}
} }
reportLines.push(errorMsg)
core.warning(`Test report summary exceeded limit of ${maxReportLength} bytes`) return reportLines.join('\n')
const badge = getReportBadge(results)
const msg = `**Test report summary exceeded limit of ${maxReportLength} bytes and was removed**`
return `${badge}\n${msg}`
} }
function applySort(results: TestRunResult[]): void { function applySort(results: TestRunResult[]): void {
@ -69,7 +85,7 @@ function getByteLength(text: string): number {
return Buffer.byteLength(text, 'utf8') return Buffer.byteLength(text, 'utf8')
} }
function renderReport(results: TestRunResult[], options: ReportOptions): string { function renderReport(results: TestRunResult[], options: ReportOptions): string[] {
const sections: string[] = [] const sections: string[] = []
const badge = getReportBadge(results) const badge = getReportBadge(results)
sections.push(badge) sections.push(badge)
@ -77,7 +93,7 @@ function renderReport(results: TestRunResult[], options: ReportOptions): string
const runs = getTestRunsReport(results, options) const runs = getTestRunsReport(results, options)
sections.push(...runs) sections.push(...runs)
return sections.join('\n') return sections
} }
function getReportBadge(results: TestRunResult[]): string { function getReportBadge(results: TestRunResult[]): string {
@ -145,7 +161,7 @@ function getSuitesReport(tr: TestRunResult, runIndex: number, options: ReportOpt
const trSlug = makeRunSlug(runIndex) const trSlug = makeRunSlug(runIndex)
const nameLink = `<a id="${trSlug.id}" href="${trSlug.link}">${tr.path}</a>` const nameLink = `<a id="${trSlug.id}" href="${trSlug.link}">${tr.path}</a>`
const icon = getResultIcon(tr.result) const icon = getResultIcon(tr.result)
sections.push(`## ${nameLink} ${icon}`) sections.push(`## ${icon} ${nameLink}`)
const time = formatTime(tr.time) const time = formatTime(tr.time)
const headingLine2 = const headingLine2 =
@ -186,7 +202,10 @@ function getSuitesReport(tr: TestRunResult, runIndex: number, options: ReportOpt
} }
function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: number, options: ReportOptions): string[] { function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: number, options: ReportOptions): string[] {
const groups = options.listTests === 'failed' ? ts.failedGroups : ts.groups if (options.listTests === 'failed' && ts.result !== 'failed') {
return []
}
const groups = ts.groups
if (groups.length === 0) { if (groups.length === 0) {
return [] return []
} }
@ -197,31 +216,28 @@ function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: numbe
const tsSlug = makeSuiteSlug(runIndex, suiteIndex) const tsSlug = makeSuiteSlug(runIndex, suiteIndex)
const tsNameLink = `<a id="${tsSlug.id}" href="${tsSlug.link}">${tsName}</a>` const tsNameLink = `<a id="${tsSlug.id}" href="${tsSlug.link}">${tsName}</a>`
const icon = getResultIcon(ts.result) const icon = getResultIcon(ts.result)
sections.push(`### ${tsNameLink} ${icon}`) sections.push(`### ${icon} ${tsNameLink}`)
const tsTime = formatTime(ts.time)
const headingLine2 = `**${ts.tests}** tests were completed in **${tsTime}** with **${ts.passed}** passed, **${ts.failed}** failed and **${ts.skipped}** skipped.`
sections.push(headingLine2)
sections.push('```')
for (const grp of groups) { for (const grp of groups) {
const tests = options.listTests === 'failed' ? grp.failedTests : grp.tests if (grp.name) {
if (tests.length === 0) { sections.push(grp.name)
continue }
const space = grp.name ? ' ' : ''
for (const tc of grp.tests) {
const result = getResultIcon(tc.result)
sections.push(`${space}${result} ${tc.name}`)
if (tc.error) {
const lines = (tc.error.message ?? getFirstNonEmptyLine(tc.error.details)?.trim())
?.split(/\r?\n/g)
.map(l => '\t' + l)
if (lines) {
sections.push(...lines)
}
}
} }
const grpHeader = grp.name ? `\n**${grp.name}**` : ''
const testsTable = table(
['Result', 'Test', 'Time'],
[Align.Center, Align.Left, Align.Right],
...grp.tests.map(tc => {
const name = tc.name
const time = formatTime(tc.time)
const result = getResultIcon(tc.result)
return [result, name, time]
})
)
sections.push(grpHeader, testsTable)
} }
sections.push('```')
return sections return sections
} }

View file

@ -17,3 +17,8 @@ export function parseIsoDate(str: string): Date {
return new Date(str) return new Date(str)
} }
export function getFirstNonEmptyLine(stackTrace: string): string | undefined {
const lines = stackTrace.split(/\r?\n/g)
return lines.find(str => !/^\s*$/.test(str))
}