Skip to content

Developing wip

slidict-ai-team[bot] edited this page Nov 28, 2026 · 1 revision

Developing wip

Use the pinned SDK and build instructions in Building from Source.

Architecture

Project Responsibility
src/Wip.Cli Parses arguments with System.CommandLine. Program.cs defines the command tree and maps errors to exit codes. CliContext coordinates command execution.
src/Wip.Core Loads and validates configuration, normalizes Compose files, stages build contexts, constructs backend arguments, runs processes, and handles platform integration and diagnostics.

The CLI references Core. The solution also includes tests/Wip.Tests, which exercises both projects. See wip.slnx.

Unit and golden tests

Build the solution first, then run the test project from the repository root:

dotnet test tests/Wip.Tests/Wip.Tests.csproj --configuration Release --no-build

The tests run without WSLC. They include parity tests that replay the recorded configuration, command-building, and utility fixtures in tests/golden. The fixtures came from v1. The C# tests read the checked-in JSON and need no Ruby runtime. For a deliberate behavior change, update the expectation in the same commit and explain why. Golden fixture guide.

End-to-end tests

These exercise the published CLI against real containers. Use Windows with WSL2, WSLC and PowerShell 7. Publish to artifacts/win-x64 as shown in Building from Source, then run the lifecycle test from the repository root:

pwsh tests/e2e/run-e2e.ps1 -Wip artifacts/win-x64/wip.exe

The Windows E2E workflow runs separately from the unit and golden suite. End-to-end test guide.

Build checks

The solution build enforces code-style diagnostics and treats warnings as errors. The shared settings live in Directory.Build.props. CI also publishes the Windows Native AOT executable to catch trimming and reflection problems.

Related

Clone this wiki locally