Skip to content

VinTest

In-game testing framework for Vintage Story mods.

VinTest lets you write automated tests that run inside the actual game, against real game state. Instead of guessing whether your mod works, you launch VS with a companion test mod loaded alongside, and the framework verifies your logic, then exits and reports the results.


VinTest is split into three "layers":

  1. Core (VinTest C# package) — the in-game test runner. Write test classes in C#, launch VS, see results in the log files and the results.json.

  2. Cake task (VinTest.Cake C# package) — automates the full cycle: build both mods, launch VS, collect results, and print a summary. Uses Cake, which ships with popular VS mod templates.

  3. VS Code extension — surfaces test results directly in the VS Code Test Explorer.


Quickstart — add VinTest to an existing mod project step by step.