Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸͺ² fixed "Error: TypeError: Cannot read properties of undefined (readi… #247

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Merge branch 'main' into split_not_defined_error_fix

894b6ff
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

πŸͺ² fixed "Error: TypeError: Cannot read properties of undefined (readi… #247

Merge branch 'main' into split_not_defined_error_fix
894b6ff
Select commit
Loading
Failed to load commit list.
GitHub Actions / Workflow Report failed Dec 17, 2023 in 1s

Workflow Report ❌

Tests failed

❌ jest-junit.xml

34 tests were completed in 7s with 33 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tests/dart-json.test.ts 3βœ… 709ms
tests/dotnet-trx.test.ts 4βœ… 6s
tests/java-junit.test.ts 4βœ… 1❌ 5s
tests/java-stack-trace-element-parser.test.ts 7βœ… 280ms
tests/jest-junit.test.ts 4βœ… 5s
tests/mocha-json.test.ts 3βœ… 674ms
tests/swift-xunit.test.ts 1βœ… 388ms
tests/utils/parse-utils.test.ts 7βœ… 247ms

βœ…Β tests/dart-json.test.ts

dart-json tests
  βœ… produces empty test run result when there are no test cases
  βœ… matches report snapshot
  βœ… report from rrousselGit/provider test results matches snapshot

βœ…Β tests/dotnet-trx.test.ts

dotnet-trx tests
  βœ… produces empty test run result when there are no test cases
  βœ… matches report snapshot
  βœ… report from FluentValidation test results matches snapshot
  βœ… report from SilentNotes test results matches snapshot

❌ tests/java-junit.test.ts

java-junit tests
  βœ… produces empty test run result when there are no test cases
  βœ… report from apache/pulsar single suite test results matches snapshot
  βœ… report from apache/pulsar test results matches snapshot
  ❌ report from jest in junit format
	Error: expect(received).toMatchSnapshot()
  βœ… parses empty failures in test results

βœ…Β tests/java-stack-trace-element-parser.test.ts

parseStackTraceLine tests
  βœ… empty line is not parsed
parseStackTraceLine tests β€Ί java class
  βœ… simple
  βœ… inner class
  βœ… starts with whitespaces
parseStackTraceLine tests β€Ί java class β€Ί since Java 9
  βœ… with classloader and module
  βœ… with classloader
parseStackTraceLine tests β€Ί Kotlin class
  βœ… method name containing whitespaces

βœ…Β tests/jest-junit.test.ts

jest-junit tests
  βœ… produces empty test run result when there are no test cases in the testsuites element
  βœ… produces empty test run result when there are no test cases in a nested testsuite element
  βœ… report from ./reports/jest test results matches snapshot
  βœ… report from facebook/jest test results matches snapshot

βœ…Β tests/mocha-json.test.ts

mocha-json tests
  βœ… produces empty test run result when there are no test cases
  βœ… report from ./reports/mocha-json test results matches snapshot
  βœ… report from mochajs/mocha test results matches snapshot

βœ…Β tests/swift-xunit.test.ts

swift-xunit tests
  βœ… report from swift test results matches snapshot

βœ…Β tests/utils/parse-utils.test.ts

parseNetDuration
  βœ… returns 0 for 00:00:00
  βœ… returns 0 for 00:00:00.0000000
  βœ… returns 123 for 00:00:00.123
  βœ… returns 12 * 1000 for 00:00:12
  βœ… returns 12 * 60 * 1000 for 00:12:00
  βœ… returns 12 * 60 * 60 * 1000 for 12:00:00
  βœ… throws when string has invalid format

Annotations

Check failure on line 28 in __tests__/java-junit.test.ts

See this annotation in the file changed.

@github-actions github-actions / Workflow Report

__tests__/java-junit.test.ts β–Ί java-junit tests β–Ί report from jest in junit format

Failed test found in:
  jest-junit.xml
Error:
  Error: expect(received).toMatchSnapshot()
Raw output
Error: expect(received).toMatchSnapshot()

Snapshot name: `java-junit tests report from jest in junit format 1`

- Snapshot  - 6
+ Received  + 6

@@ -1,15 +1,15 @@
  TestRunResult {
    "path": "fixtures/external/java/test-report-jest.xml",
-   "suites": Array [
+   "suites": [
      TestSuiteResult {
-       "groups": Array [
+       "groups": [
          TestGroupResult {
            "name": "MaintenanceFilterComponent",
-           "tests": Array [
+           "tests": [
              TestCaseResult {
-               "error": Object {
+               "error": {
                  "details": undefined,
                  "line": undefined,
                  "message": undefined,
                  "path": undefined,
                },
@@ -22,14 +22,14 @@
        ],
        "name": "maintenance/maintenance-filter/maintenance-filter.component.spec.ts",
        "totalTime": 1204,
      },
      TestSuiteResult {
-       "groups": Array [
+       "groups": [
          TestGroupResult {
            "name": "AppComponent",
-           "tests": Array [
+           "tests": [
              TestCaseResult {
                "error": undefined,
                "name": "should create the app",
                "result": "success",
                "time": 0,
    at /home/runner/work/test-reporter/test-reporter/__tests__/java-junit.test.ts:91:20
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/work/test-reporter/test-reporter/__tests__/java-junit.test.ts:28:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)