From 3bff88a291591b4aae1edd337435b25f6061026c Mon Sep 17 00:00:00 2001 From: Charlie Poole Date: Sat, 28 Dec 2024 11:22:24 -0800 Subject: [PATCH] Port issue 1465 to V4 --- src/NUnitEngine/nunit.engine.core/Drivers/DriverService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NUnitEngine/nunit.engine.core/Drivers/DriverService.cs b/src/NUnitEngine/nunit.engine.core/Drivers/DriverService.cs index 3cd11df8d..6d6455a13 100644 --- a/src/NUnitEngine/nunit.engine.core/Drivers/DriverService.cs +++ b/src/NUnitEngine/nunit.engine.core/Drivers/DriverService.cs @@ -69,7 +69,11 @@ public IFrameworkDriver GetDriver(AppDomain domain, string assemblyPath, string : targetFramework.Split(new char[] { ',' })[0]; if (platform == "Silverlight" || platform == ".NETPortable" || platform == ".NETStandard" || platform == ".NETCompactFramework") - return new InvalidAssemblyFrameworkDriver(assemblyPath, platform + " test assemblies are not supported by this version of the engine"); + if (skipNonTestAssemblies) + return new SkippedAssemblyFrameworkDriver(assemblyPath); + else + return new InvalidAssemblyFrameworkDriver(assemblyPath, platform + + " test assemblies are not supported by this version of the engine"); } try