Repository navigation
Development and Testing
The project uses SwiftPM and Swift Testing on macOS 26 with Swift 6.3. Run commands from the repository root unless a section says otherwise.
swift package resolve
swift buildThe nested package can be built independently:
cd Swift
swift package resolve
swift buildNo separate lint or formatting command is configured. swift build is the repository's build and type-checking gate.
Run the complete root-package suite:
swift testUseful focused suites:
swift test --filter WebTransportHTTP3CoreTests
swift test --filter WebTransportTLSCoreTests
swift test --filter WebTransportNetworkRuntimeTests
swift test --filter WebTransportTestsTest targets and their primary scope:
| Target | Coverage |
|---|---|
WebTransportTests |
Public API, separate processes, loopback networking, stress, release artifacts, and compatibility integration. |
WebTransportNetworkRuntimeTests |
Runtime lifecycle, endpoint handling, deterministic network support, and hardening. |
WebTransportHTTP3CoreTests |
HTTP/3, QPACK, sessions, streams, datagrams, flow control, limits, and malformed input. |
WebTransportQUICCoreTests |
QUIC state, codecs, ACK/loss behavior, malformed input, and property corpora. |
WebTransportTLSCoreTests |
TLS messages, state, key schedule, trust gating, exporter behavior, and hardening. |
WebTransportCryptoAppleTests |
Initial-key derivation and packet protection. |
WebTransportUDPAppleTests |
IPv4/IPv6 loopback and cancellation behavior. |
swift run WebTransportClient --scenario all
swift run WebTransportServer --scenario allEach executable runs the same 40-scenario positive and negative protocol matrix. Use --list to inspect scenario names and --help for command syntax.
cd Swift
./check-api-compatibility.sh
./build-release-apple-silicon.shThe compatibility script builds an external package that imports the public products. The release script performs two clean arm64 builds, checks architecture and product selection, compares normalized binary hashes, and writes WebTransportClient, WebTransportServer, and SHA256SUMS under .build/release-artifacts/. Package tests and CI smoke-test those artifacts.
| Change | Minimum evidence |
|---|---|
| Documentation | Source/config fact check, local and Wiki link checks, rendered Markdown review. |
| Public API | Build, complete tests, API compatibility script, DocC conversion. |
| CLI | Complete tests and both conformance suites. |
| Runtime or trust | Runtime/public API/process tests plus IPv4 and IPv6 packet loopback. |
| HTTP/3, QPACK, or sessions | HTTP3Core tests and relevant conformance scenarios. |
| QUIC, TLS, crypto, or UDP | Owning target tests plus an integration path. |
| Release tooling | Reproducible release build and CI review. |
| Interoperability | The appropriate runner from [[Release and Interoperability |
Environment-sensitive checks must be reported precisely. Do not reuse old generated artifacts as evidence for a new code revision.
- Identify the owning module and read its nearest tests.
- Check public API, protocol, trust, logging, manifest, CI, and documentation effects.
- Make the smallest coherent change and cover important negative paths.
- Run focused checks, then the broader validation required by the change.
- Review the final diff for generated output, credentials, stale claims, and unrelated edits.
- Update documentation whenever setup, API, behavior, trust, workflow, or release evidence changes.