Skip to content

ContainerDeck 0.4.1 — Test suite

Choose a tag to compare

@dmondello dmondello released this 13 Jun 08:48

A robustness release: ContainerDeck now ships a test suite.

Dependency-free tests

XCTest and Swift Testing both require Xcode — which this project deliberately doesn't need. So the suite is a self-contained harness run through the executable's --run-tests flag, working with the Command Line Tools alone and exiting non-zero on failure (CI-ready):

make test     # or: swift run ContainerDeck --run-tests

56 assertions cover the pure logic where regressions hurt most:

  • Tolerant JSON access (dotted paths, array/single-object records, invalid input)
  • Model mappings against the real CLI 1.0.0 schema — container (status object, CIDR-stripped IP, resources, env), image (arm64 variant size), volume, network (built-in detection), stats
  • run argument generation from the create form
  • Compose parser — ${VAR:-default} interpolation, depends_on topological order, bare service names, build-context resolution, and skipped-mount/restart warnings

No app behavior changes; same features as 0.4.0.

Installation

macOS 15+ on Apple Silicon. The DMG is not notarized: after dragging the app to Applications, allow it once via System Settings → Privacy & Security → "Open Anyway".