Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dotnet run --project EvenBetterFastSim/EvenBetterFastSim.csproj

Configurations: `Debug` and `Release` (use the `SecsGemBase.MessageHandling` / `SecsGemBase.ScenarioEngine` pre-release NuGet packages from nuget.org), `DebugLocal` (uses SecsGemBase DLLs from `%USERPROFILE%\source\repos\SecsGemBase\`).

No linter, no typecheck. Tests: `EvenBetterFastSim.Tests` (xUnit) — build the app first, then test:
No linter, no typecheck. Tests: `EvenBetterFastSim.Tests` (xUnit v3 via VSTest, package `xunit.v3.mtp-off`) — build the app first, then test:

```bash
dotnet build EvenBetterFastSim.sln -c DebugLocal
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ When modifying SecsGemBase, publish the updated `SecsGemBase.*` packages to nuge

### Tests

`EvenBetterFastSim.Tests` is an xUnit project covering the SecsGemItem binary-save flow. It validates the **shipping build**, so it references the DLLs from the app's `Release` output (public SecsGemBase NuGet packages, not `DebugLocal`). Build the app in Release first, as its own `dotnet` invocation — the test project's reference glob is expanded at evaluation time and needs the app output to already exist:
`EvenBetterFastSim.Tests` is an xUnit v3 project covering the SecsGemItem binary-save flow. It is an executable: v3 runs the tests in their own process, started from `EvenBetterFastSim.Tests.exe`. It uses `xunit.v3.mtp-off`, so `dotnet test` stays on VSTest; plain `xunit.v3` would bring Microsoft Testing Platform v2, and `dotnet test` on the .NET 10 SDK then fails unless a `global.json` opts into MTP. It validates the **shipping build**, so it references the DLLs from the app's `Release` output (public SecsGemBase NuGet packages, not `DebugLocal`). Build the app in Release first, as its own `dotnet` invocation — the test project's reference glob is expanded at evaluation time and needs the app output to already exist:

```bash
dotnet build EvenBetterFastSim/EvenBetterFastSim.csproj -c Release
Expand Down
15 changes: 12 additions & 3 deletions EvenBetterFastSim.Tests/EvenBetterFastSim.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>net10.0-windows</TargetFramework>
<OutputType>Exe</OutputType>
<UseWPF>true</UseWPF>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
Expand All @@ -26,10 +27,18 @@
<AppOut>$(MSBuildProjectDirectory)\..\EvenBetterFastSim\bin\Release\net10.0-windows7.0</AppOut>
</PropertyGroup>

<!--
xUnit v3 through VSTest (the 'vstest' variant of the xunit3 template), so `dotnet test`, CI and the
Visual Studio Test Explorer work as before. Keep 'xunit.v3.mtp-off': plain 'xunit.v3' brings Microsoft
Testing Platform v2, and `dotnet test` on the .NET 10 SDK then fails in VSTest mode ("Testing with VSTest
target is no longer supported by Microsoft.Testing.Platform") unless global.json opts into MTP.
v3 runs the tests in their own process, started from the app host EvenBetterFastSim.Tests.exe: hence
OutputType Exe above.
-->
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.10.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.0">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.12.0" />
<PackageReference Include="xunit.v3.mtp-off" Version="4.0.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down