diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57bf1aa..c12b58c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: if: needs.changes.outputs.csharp == 'true' runs-on: ubuntu-latest env: - VS_VERSION: "1.21.7" + VS_VERSION: "1.22.2" steps: - uses: actions/checkout@v6 - uses: actions/setup-dotnet@v5 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 87e9353..cc7d7cf 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,7 +18,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest env: - VS_VERSION: "1.21.7" + VS_VERSION: "1.22.2" steps: - uses: actions/configure-pages@v6 diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index 5063ea2..66744bc 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -14,7 +14,7 @@ on: vs_version: description: "VintageStory version (for core/cake builds)" required: false - default: "1.21.7" + default: "1.22.2" jobs: pack: diff --git a/.mdformat.toml b/.mdformat.toml index 67331be..4f98c3e 100644 --- a/.mdformat.toml +++ b/.mdformat.toml @@ -1,4 +1,5 @@ exclude = [ "docs/api/**", "vscode-ext/node_modules/**", + "README.md", ] diff --git a/README.md b/README.md index 9d289c7..c77a2fa 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,7 @@ # VinTest — in-game testing framework for Vintage Story mods -![Demo](demo.png) - -VinTest lets you write automated tests for your Vintage Story mod that run inside the actual game. -Instead of guessing whether your code works, you launch VS with a companion test mod loaded alongside -your real mod, and the framework verifies your logic, then exits and reports the results. +| ![Demo](/docs/img/demo.png) | Make a mod for your mod that will test your mod while you mod it. | +| --- | --- | **Documentation: https://artalus.github.io/vintest/** diff --git a/VinTest.Cake/VinTest.Cake.csproj b/VinTest.Cake/VinTest.Cake.csproj index a4127ac..c71b092 100644 --- a/VinTest.Cake/VinTest.Cake.csproj +++ b/VinTest.Cake/VinTest.Cake.csproj @@ -1,16 +1,23 @@ - net8.0 + net10.0 enable true VinTest.Cake - 0.0.0 + 0.1.0 Cake tasks for automating VintageStory mod game tests with VinTest. VintageStory modding testing cake git + LICENSE + README.md + + + + + diff --git a/VinTest/VinTest.csproj b/VinTest/VinTest.csproj index 479f20e..8fe83b2 100644 --- a/VinTest/VinTest.csproj +++ b/VinTest/VinTest.csproj @@ -1,16 +1,23 @@ - net8.0 + net10.0 enable true VinTest - 0.0.0 + 0.1.0 Create autotests for your Vintage Story mods. VintageStory modding testing git + LICENSE + README.md + + + + + $(VINTAGE_STORY)/VintagestoryAPI.dll @@ -21,4 +28,9 @@ false + + + + + diff --git a/VinTest/build/VinTest.targets b/VinTest/build/VinTest.targets new file mode 100644 index 0000000..95790be --- /dev/null +++ b/VinTest/build/VinTest.targets @@ -0,0 +1,13 @@ + + + + + + diff --git a/docs.py b/docs.py index 1ae31a9..44394f7 100755 --- a/docs.py +++ b/docs.py @@ -26,9 +26,9 @@ def main(args: Args) -> None: out = "dedo-out" shutil.rmtree(out, ignore_errors=True) if args.target == "core": - dll = "VinTest/bin/Release/net8.0/VinTest.dll" + dll = "VinTest/bin/Release/net10.0/VinTest.dll" elif args.target == "cake": - dll = "VinTest.Cake/bin/Release/net8.0/VinTest.Cake.dll" + dll = "VinTest.Cake/bin/Release/net10.0/VinTest.Cake.dll" elif args.target == "vintage": e = os.getenv("VINTAGE_STORY") if not e: diff --git a/docs/guides/local-dev.md b/docs/guides/local-dev.md index aa4ec75..b1949fe 100644 --- a/docs/guides/local-dev.md +++ b/docs/guides/local-dev.md @@ -23,8 +23,8 @@ Vintage Story installation directory (the one that contains `VintagestoryAPI.dll ```xml - - E:/Games/VintageStoryManaged/1.21.7/VintagestoryAPI.dll + + E:/Games/VintageStoryManaged/1.22.2/VintagestoryAPI.dll ../../../VintageStory/VintagestoryAPI.dll diff --git a/docs/quickstart/cake-integration.md b/docs/quickstart/cake-integration.md index e84b81a..44b1058 100644 --- a/docs/quickstart/cake-integration.md +++ b/docs/quickstart/cake-integration.md @@ -26,13 +26,13 @@ Update your `CakeBuild.csproj` C# project to use the [`VinTest.Cake`](/vintest/a Exe - net8.0 + net10.0 $(MSBuildProjectDirectory) - + @@ -131,7 +131,7 @@ dotnet run ` --project ./CakeBuild ` --target RunGameTests ` -- ` - --vs-path "D:/VintageStory/1.21.7" ` + --vs-path "D:/VintageStory/1.22.2" ` --data-path "../gamedata" ` --test-world "autotest" ` --manual-mode true @@ -166,7 +166,7 @@ dotnet run ` --project ./CakeBuild ` --target RunGameTests ` -- ` - --vs-path "D:/VintageStory/1.21.7" ` + --vs-path "D:/VintageStory/1.22.2" ` --data-path "../gamedata" ` --test-world "autotest" ` # (1)! diff --git a/docs/quickstart/getting-started.md b/docs/quickstart/getting-started.md index 6fee9bb..9373c0d 100644 --- a/docs/quickstart/getting-started.md +++ b/docs/quickstart/getting-started.md @@ -39,7 +39,7 @@ Add a new C# project to your solution. By convention it is named `.game ```xml title="YourMod.gametests/YourMod.gametests.csproj" linenums="1" hl_lines="9-21" - net8.0 + net10.0 false bin\$(Configuration)\Mods\mod enable @@ -53,7 +53,7 @@ Add a new C# project to your solution. By convention it is named `.game - + false diff --git a/example/CakeBuild/CakeBuild.csproj b/example/CakeBuild/CakeBuild.csproj index 908712b..36f836c 100644 --- a/example/CakeBuild/CakeBuild.csproj +++ b/example/CakeBuild/CakeBuild.csproj @@ -1,7 +1,7 @@ Exe - net8.0 + net10.0 false $(MSBuildProjectDirectory) @@ -17,7 +17,7 @@ Usually you'd want to alwas get a pinned VinTest version from NuGet. But you can use a local copy via Directory.Build.targets file. --> - + diff --git a/example/MyMod.gametests/MyMod.gametests.csproj b/example/MyMod.gametests/MyMod.gametests.csproj index 6b481d2..a4b77fd 100644 --- a/example/MyMod.gametests/MyMod.gametests.csproj +++ b/example/MyMod.gametests/MyMod.gametests.csproj @@ -1,6 +1,6 @@ - net8.0 + net10.0 false bin\$(Configuration)\Mods\mod enable @@ -24,7 +24,7 @@ Usually you'd want to always get a pinned VinTest version from NuGet. But you can use a local copy via Directory.Build.targets file. --> - + diff --git a/example/MyMod.unittests/MyMod.unittests.csproj b/example/MyMod.unittests/MyMod.unittests.csproj index f67d7a3..246426f 100644 --- a/example/MyMod.unittests/MyMod.unittests.csproj +++ b/example/MyMod.unittests/MyMod.unittests.csproj @@ -6,7 +6,7 @@ implemented unit tests will run faster than gametests. - net8.0 + net10.0 enable diff --git a/example/MyMod/MyMod.csproj b/example/MyMod/MyMod.csproj index 8db15d6..43d7b70 100644 --- a/example/MyMod/MyMod.csproj +++ b/example/MyMod/MyMod.csproj @@ -1,6 +1,6 @@ - net8.0 + net10.0 false bin\$(Configuration)\Mods\mod enable diff --git a/vscode-ext/package.json b/vscode-ext/package.json index b469556..7091cad 100644 --- a/vscode-ext/package.json +++ b/vscode-ext/package.json @@ -2,7 +2,7 @@ "name": "vintest-adapter", "displayName": "VinTest Testing Adapter", "description": "Discovers and runs VinTest game tests via the VS Code Testing panel", - "version": "0.0.0", + "version": "0.1.0", "publisher": "Artalus", "repository": { "type": "git",