@appifex/test-gen
Generate all tests (UI + unit) before code. This is the "tests first" step of the two-layer TDD approach.
Usage
import { generateUITests, generateUnitTests } from '@appifex/test-gen'
const flows = generateUITests(platformSpec)
const files = generateUnitTests(
['Filter pets by type', 'Add and remove favorites', 'Validate adoption form'],
'swiftui',
)
What it generates
| UI tests | swiftui | Maestro YAML flows with assertVisible + tapOn |
| UI tests | kotlin-compose | Maestro YAML flows (same format) |
| Unit tests | swiftui | XCTest .swift files |
| Unit tests | kotlin-compose | JUnit .kt files |
Generated tests are locked — they become the contract that code generation must satisfy.