From c71e0bf9ae6e7e01e8f4a64ada29965b1568426a Mon Sep 17 00:00:00 2001 From: Adrian Date: Thu, 19 Mar 2026 18:44:32 +0100 Subject: [PATCH] Update docs and add xping test fingerprint --- docs/getting-started/quickstart-nunit.md | 2 +- samples/SampleApp.NUnit/SampleTests.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/getting-started/quickstart-nunit.md b/docs/getting-started/quickstart-nunit.md index 7838b44..e714048 100644 --- a/docs/getting-started/quickstart-nunit.md +++ b/docs/getting-started/quickstart-nunit.md @@ -294,7 +294,7 @@ public void Login_ShouldSucceed(string role, bool expected) { ... } // Automatically produces: "login-v1:admin,true" and "login-v1:user,false" ``` -> **💡 Tip:** Once you publish a run with a pinned fingerprint, treat that value as permanent. Renaming the method is safe—that is the whole point—but changing the attribute value itself severs the link to all historical data for that test. +> **Important:** Once you publish a run with a pinned fingerprint, treat that value as permanent. Renaming the method is safe—that is the whole point—but changing the attribute value itself severs the link to all historical data for that test. --- diff --git a/samples/SampleApp.NUnit/SampleTests.cs b/samples/SampleApp.NUnit/SampleTests.cs index cb303a6..8c2850e 100644 --- a/samples/SampleApp.NUnit/SampleTests.cs +++ b/samples/SampleApp.NUnit/SampleTests.cs @@ -6,6 +6,7 @@ namespace SampleApp.NUnit; using global::NUnit.Framework; +using Xping.Sdk.Core.Attributes; using Xping.Sdk.NUnit; #pragma warning disable CA1707 // Identifiers should not contain underscores @@ -58,6 +59,7 @@ public void ThrowingTestIsTracked() [Category("Flaky")] [Category("Random")] [Description("Demonstrates a flaky test that fails randomly due to probabilistic behavior")] + [XpingFingerprint("flaky-random-failure-v1")] // Pin a constant fingerprint to maintain historical data across refactors public async Task FlakyTest_RandomFailure_FailsProbabilistically() { // Random.Shared is cryptographically seeded by the runtime — no TickCount bias.