| name | testing |
|---|---|
| description | XCTest layout, simulator runs, and secrets policy for ContentstackPersistenceTests |
- You add or change tests under
ContentstackPersistenceTests/ - You run tests locally or debug CI test failures
- You need guidance on credentials and fixtures
- Framework: XCTest (
ContentstackPersistenceTests.mand future*Tests.mfiles). - Target:
ContentstackPersistenceTests(xctest bundleContentstackPersistenceTests.xctest). - Run: After
pod install, usexcodebuildwith schemeContentstackPersistenceand actiontest, with an iOS Simulator destination (see AGENTS.md).
- Test class inherits from
XCTestCase; methods follow- (void)test*naming. - Prefer descriptive test names that state what is being verified (replace placeholder
testExamplewhen adding real coverage).
- Do not commit API keys, delivery tokens, or stack secrets to tests or repo files.
- Prefer mocks, dependency injection at the store/sync boundaries, or local fixtures checked in without secrets.
- If integration tests against a real stack are ever added, isolate them behind explicit schemes or skipped-by-default targets and load credentials from the environment or ignored local config—not from git.
- No shared coverage gate is defined in-repo; if the team adds Xcode coverage or a script, document the command in dev-workflow and AGENTS.md.