VinTest.Cake.ContextBase
VinTest.Cake¶
ContextBase Class¶
FrostingContext substitute that provides common arguments for running VS integration tests. Inherit from this in your mod's BuildContext and supply the remaining project-specific properties.
Inheritance Object → Cake.Core.CakeContextAdapter → Cake.Frosting.FrostingContext → ContextBase
Constructors¶
ContextBase(ICakeContext) Constructor¶
Initializes a new instance of the Cake.Frosting.FrostingContext class.
Parameters¶
context Cake.Core.ICakeContext
The Cake context.
Fields¶
ContextBase.TestResultsDirName Field¶
Directory under the VS data path where VinTest will store its files. Shared with VinTest.Runner.
Field Value¶
Properties¶
ContextBase.AutotestsProjectName Property¶
Name of the test mod project (WITHOUT .csproj extension).
You can redefine it in your BuildContext class if you use different naming convention.
Property Value¶
ContextBase.BuildConfiguration Property¶
[ARG] Dotnet configuration (Debug/Release) to build the solution in.
Property Value¶
ContextBase.DataPath Property¶
[ARG] Absolute path to the VS data directory (containing Saves/, Logs/, etc.).
Property Value¶
ContextBase.IgnoreLogErrors Property¶
[ARG] If set, log lines matching error patterns are captured but do not fail the build.
Property Value¶
ContextBase.ManualMode Property¶
[ARG] When set, launches VS without running tests automatically. Cake will wait for VS to exit without checking for test results.
Property Value¶
ContextBase.PidFilePath Property¶
Path to the PID file written by cake task once VintageStory is launched.
Property Value¶
ContextBase.ProjectName Property¶
Name of your core mod's project (WITHOUT .csproj extension)
You must define it in your BuildContext class.
Property Value¶
ContextBase.TestCaseFilter Property¶
[ARG] Case-insensitive substring filter applied to SuiteName.CaseName.
Leave empty to run all tests.
When non-empty, only matching tests are executed.
Property Value¶
ContextBase.TestResultsPath Property¶
Path to the JSON file where test results are written by the test runner.
Property Value¶
ContextBase.TestRunTimeoutSeconds Property¶
[ARG] Maximum seconds to wait for all tests to finish before timing out.
Property Value¶
ContextBase.TestWorldName Property¶
[ARG] Name of the world save to load for tests.
Property Value¶
ContextBase.VsExePath Property¶
Absolute path to VS executable (Vintagestory.exe on Windows, Vintagestory on Linux).
Property Value¶
ContextBase.VsPath Property¶
[ARG] Absolute path to the VintageStory installation directory.