Skip to content

Conversation

@mokagio
Copy link
Contributor

@mokagio mokagio commented Nov 27, 2025

Demo for building the package as an XCFramework, with CI bare bone integration tests.

image

What?

Why?

How?

Testing Instructions

Accessibility Testing Instructions

Screenshots or screencast

Comment on lines 5 to 7
echo "--- :pencil2: Breaking bundle resource path to verify test catches failures"
# Replace "Gutenberg" with "folder_that_does_not_exist" in the HTMLPreviewManager
sed -i.bak 's/forResource: "Gutenberg", withExtension: nil/forResource: "folder_that_does_not_exist", withExtension: nil/g' ios/Sources/GutenbergKit/Sources/Views/HTMLPreview/HTMLPreviewManager.swift
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we can't inject values that would result in a crash and we can't test for crashes anyways when targeting iOS we hack the code to force a crash and test that the tests fail as expected.

@mokagio mokagio mentioned this pull request Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants