From dc3a45e699f33be640bb6a0d620543934204191b Mon Sep 17 00:00:00 2001 From: Brent Perteet Date: Thu, 20 Aug 2026 12:53:34 -0500 Subject: [PATCH] test: stand up xUnit harness for QA gate (S1-f) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Standalone net9.0 xUnit project at tests/FieldLogger.Tests (no MAUI workload) so `dotnet test` runs fast in the QA gate. Smoke suite only for now; real app logic tests land once codec/sim are factored into a workload-free library. Trace: SRS §6 gate, NFR-8. Co-Authored-By: Claude Opus 4.8 --- .../FieldLogger.Tests.csproj | 28 +++++++++++++++++++ tests/FieldLogger.Tests/SmokeTests.cs | 24 ++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 tests/FieldLogger.Tests/FieldLogger.Tests.csproj create mode 100644 tests/FieldLogger.Tests/SmokeTests.cs diff --git a/tests/FieldLogger.Tests/FieldLogger.Tests.csproj b/tests/FieldLogger.Tests/FieldLogger.Tests.csproj new file mode 100644 index 0000000..6276f95 --- /dev/null +++ b/tests/FieldLogger.Tests/FieldLogger.Tests.csproj @@ -0,0 +1,28 @@ + + + + + net9.0 + enable + enable + false + true + + + + + + + + + diff --git a/tests/FieldLogger.Tests/SmokeTests.cs b/tests/FieldLogger.Tests/SmokeTests.cs new file mode 100644 index 0000000..9ac63fe --- /dev/null +++ b/tests/FieldLogger.Tests/SmokeTests.cs @@ -0,0 +1,24 @@ +using Xunit; + +namespace FieldLogger.Tests; + +// Smoke test for the QA gate (S1-f, trace: SRS §6 gate / NFR-8). +// Proves the .NET test toolchain (dotnet test + xUnit) is wired and green in the app repo. +// Substantive coverage (e.g. the S1-b IF-LOC codec round-trip) is added once the app's +// pure logic is factored into a workload-free library this project can reference. +public class SmokeTests +{ + [Fact] + public void Harness_Runs() + { + Assert.True(true); + } + + [Theory] + [InlineData(1, 1, 2)] + [InlineData(2, 3, 5)] + public void Arithmetic_Sanity(int a, int b, int expected) + { + Assert.Equal(expected, a + b); + } +}