Skip to content

HTML Report is completely blank >= Xcode 16 beta 3 #358

Description

@dokimyj

Hello,

I have an issue with xchtmlreport execution when testing using Xcode 16 beta 3 & 4.

In detail, index.html from xchtmlreport command is completely blank even though there exists a .xcresult file.
Here is what I get when executing xchtmlreport with full normal .xcresult file:

# Same thing happens when using Xcode 16 beta 4 as DEVLEOPER_PATH
$ DEVELOPER_DIR=/Applications/Xcode_16_beta_3.app ./xchtmlreport fastlane/test_output/myapptest.xcresult
Error: This command is deprecated and will be removed in a future release, --legacy flag is required to use it.
Usage: xcresulttool get object [--legacy] --path <path> [--id <id>] [--version <version>] [--format <format>]
  See 'xcresulttool get object --help' for more information.
Warning: Can't find invocation record for : fastlane/test_output/myapptest.xcresult

Report successfully created at /path/to/source/fastlane/test_output/index.html
スクリーンショット 2024-07-30 10 57 02

The screenshot above is index.html after the command executed.
As you see, it is completely blank.

Works well when using Xcode 16 beta 2

$ DEVELOPER_DIR=/Applications/Xcode_16_beta_2.app ./xchtmlreport fastlane/test_output/myapptest.xcresult
Warning: Can't find test reference for action Build "myapptest"
Warning: Can't find test reference for action Build "myapptest"
Warning: Can't find test reference for action Build "myapptest"
Warning: Can't find test reference for action Build for Testing "myapptest"

Report successfully created at /path/to/source/fastlane/test_output/index.html
スクリーンショット 2024-07-30 11 07 27 (Some warnings shown up but HTML report itself is normal)

I found the fact out that XCTestHTMLReport is using XCResultKit derived from the fork of the original,
which has been updated along with Xcode 16 beta releases.

Here is the diff between original XCResultKit and the fork, which is a dependency of this repository.

tylervick/XCResultKit@main...davidahouse:XCResultKit:main#diff-323dfc344bcc9a79dc779a072e206692565a32efdb3c2c9e2d24c8e80cdd5e8dR126-R142

Hope this one fixed soon. Thanks in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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