File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -247,15 +247,17 @@ struct MyLogger: PersistentHistoryTrackingKitLoggerProtocol {
2472474 . Re-evaluate ` allAuthors ` and ` batchAuthors ` .
2482485 . Revisit cleanup expectations if you previously depended on forced cleanup.
2492496 . Use shared ` UserDefaults ` for App Group setups.
250- 7 . Run tests serially, not in parallel.
250+ 7 . Run tests with the current parallel test baseline and keep Core Data concurrency assertions enabled .
251251
252252## Testing Notes
253253
254- This repository's full test suite is expected to run serially .
254+ This repository's full test suite now runs in parallel .
255255
256- - Command line: ` swift test --no- parallel `
256+ - Command line: ` swift test --parallel `
257257- Or use: ` ./test.sh `
258- - In Xcode: disable parallel testing for the package
258+ - In Xcode: parallel execution is supported after the test infrastructure fixes
259+ - ` TestModelBuilder.createContainer ` is intentionally serialized because concurrent
260+ ` NSPersistentContainer ` initialization can crash inside Core Data during store loading
259261
260262## Related Docs
261263
Original file line number Diff line number Diff line change @@ -239,15 +239,17 @@ struct MyLogger: PersistentHistoryTrackingKitLoggerProtocol {
2392394 . 重新审视 ` allAuthors ` 和 ` batchAuthors ` 。
2402405 . 如果之前依赖强制清理,重新设计清理策略。
2412416 . App Group 场景使用共享 ` UserDefaults ` 。
242- 7 . 测试时使用串行执行,不要并行跑全量测试 。
242+ 7 . 按当前并行测试基线运行测试,并保持 Core Data 并发断言开启 。
243243
244244## 测试说明
245245
246- 当前仓库的全量测试应视为串行测试 。
246+ 当前仓库的全量测试已经切换为并行执行 。
247247
248- - 命令行:` swift test --no- parallel `
248+ - 命令行:` swift test --parallel `
249249- 或直接使用:` ./test.sh `
250- - Xcode 中请关闭 package 的并行测试
250+ - Xcode 中也支持并行测试
251+ - ` TestModelBuilder.createContainer ` 会刻意串行化,因为并发初始化 ` NSPersistentContainer `
252+ 并加载 store 时,Core Data 内部可能出现崩溃
251253
252254## 相关文档
253255
You can’t perform that action at this time.
0 commit comments