Skip to content

Maven failsafe plugin reports parsing fails: [Error: Cannot read properties of undefined (reading 'testsuite')] #184

@dejan-stojadinovic

Description

@dejan-stojadinovic

Configuration:

    - name: Publish Failsafe Test Report
      if: success() || failure()
      uses: scacap/action-surefire-report@v1.7.2
      with:
        report_paths: "**/failsafe-reports/*.xml"

Maven plugin version:

                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <version>3.1.2</version>
                    </plugin>

Github Actions workflow error:

Run scacap/action-surefire-report@v1.7.2
  with:
    report_paths: **/failsafe-reports/*.xml
    github_token: ***
    create_check: true
    check_name: Test Report
    fail_on_test_failures: false
    fail_if_no_tests: true
    skip_publishing: false
    file_name_in_stack_trace: false
  env:
    ECR_AWS: *************
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.8-1/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.8-1/x64
Going to parse results form **/failsafe-reports/*.xml
Error: Cannot read properties of undefined (reading 'testsuite')

Note: can't share code, repository is private.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions