diff --git a/Allure.Net.Commons/TestPlan/AllureTestPlan.cs b/Allure.Net.Commons/TestPlan/AllureTestPlan.cs
index 471cdafd..2e567667 100644
--- a/Allure.Net.Commons/TestPlan/AllureTestPlan.cs
+++ b/Allure.Net.Commons/TestPlan/AllureTestPlan.cs
@@ -86,7 +86,10 @@ public static AllureTestPlan FromEnvironment()
///
public static readonly AllureTestPlan DEFAULT_TESTPLAN = new();
- static string? ResolveTestPlanPath() =>
+ ///
+ /// Returns the path of the current test plan file, if any.
+ ///
+ public static string? ResolveTestPlanPath() =>
new[]
{
AllureConstants.NEW_ALLURE_TESTPLAN_ENV_NAME,
@@ -95,6 +98,13 @@ public static AllureTestPlan FromEnvironment()
ev => !string.IsNullOrWhiteSpace(ev)
).FirstOrDefault();
+ ///
+ /// A short message that can be used to report an ignored test to the test
+ /// framework.
+ ///
+ public static string SkipReason =>
+ "Not in the test plan " + (ResolveTestPlanPath() ?? "");
+
static AllureTestPlan GetTestPlanByPath(string? testPlanPath) =>
testPlanPath is null || !File.Exists(testPlanPath)
? DEFAULT_TESTPLAN