From 12102247930cbb62688249d347e4e4b65a297998 Mon Sep 17 00:00:00 2001 From: Maksim Stepanov <17935127+delatrie@users.noreply.github.com> Date: Thu, 28 Sep 2023 02:24:52 +0700 Subject: [PATCH] Add a shorthand for testplan's IsMatch --- Allure.NUnit/Core/AllureNUnitHelper.cs | 7 +--- .../SelectiveRunTests/TestPlanTests.cs | 36 +++++++++++++++++++ Allure.Net.Commons/TestPlan/AllureTestPlan.cs | 10 ++++++ 3 files changed, 47 insertions(+), 6 deletions(-) diff --git a/Allure.NUnit/Core/AllureNUnitHelper.cs b/Allure.NUnit/Core/AllureNUnitHelper.cs index 7434ccc9..bdad89cb 100644 --- a/Allure.NUnit/Core/AllureNUnitHelper.cs +++ b/Allure.NUnit/Core/AllureNUnitHelper.cs @@ -191,12 +191,7 @@ void UpdateTestDataFromAllureAttributes(TestResult testResult) } static bool IsSelectedByTestPlan(TestResult testResult) => - TestPlan.Value.IsMatch( - testResult.fullName, - AllureTestPlan.GetAllureId( - testResult.labels ?? Enumerable.Empty