Enable running WordPressShared unit tests from Xcode and using Xcode MCP#25370
Enable running WordPressShared unit tests from Xcode and using Xcode MCP#25370
Conversation
|
|
| App Name | WordPress | |
| Configuration | Release-Alpha | |
| Build Number | 31436 | |
| Version | PR #25370 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | e6835fd | |
| Installation URL | 4uh55gr38r5po |
|
| App Name | Jetpack | |
| Configuration | Release-Alpha | |
| Build Number | 31436 | |
| Version | PR #25370 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | e6835fd | |
| Installation URL | 5sd0n0kftkrh0 |
🤖 Build Failure AnalysisThis build has failures. Claude has analyzed them - check the build annotations for details. |
jkmassel
left a comment
There was a problem hiding this comment.
This seems like a good plan, but WDYT about putting the xctestplan in the WordPressSharedTests directory? That way each of these is colocated with their tests.
mokagio
left a comment
There was a problem hiding this comment.
Looking good. I second @jkmassel 's comment regarding having the plan live in the same folder as the tests is manages.
I can see the value of a dedicated folder for plans if they were to combine different targets or different paths across targets, but since this is just an unfortunate requirement for testability with Xcode schemes, and the plan maps the whole tests target 1:1, it seems better for it to live in the same folder as the tests.
Anyways, looks like @kean already planned to address, so I'm preaching to the convert.
That would have been my guess, too. However, what would happens once SwiftPM regenerates them? |
Presumably, it won't if it's shared. I'm going to give it a try. There must be a way to build and tests individual modules from Xcode for its MCP. It's a huge impediment when you are making module-specific changes. |











Problem
WordPressShared, Xcode has two shared schemes instead of one:(WordPress project)one is, but it asks you to select a module it belongs to (it doesn't know). It won't let you pickWordPressSharedeither.WordPressShared, but they are brokenAs a result, neither you not CC can run unit tests for individual targets using Xcode UI and/or Xcode MCP
Solution
./TestPlans/(happy to discuss alternatives)Result
Future Changes
Update the rest of the schemes for the interval SwiftPM module in the same fashion to allow testing them directly from Xcode and using Xcode MCP.