about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorDavid McFarland2024-09-02 07:09:06 -0700
committerGitHub2024-09-02 07:09:06 -0700
commit7bc85af0c5da0cd45a47256180af6969a21d8814 (patch)
tree315bee342171e64729926d93c8af6911fcb39724 /pkgs/by-name
parent41ac9a8729c3b55174d8d2b02712e9c9dfc176b4 (diff)
parenta177c637b91c7d40531327a04dfdc3e1035d293b (diff)
buildDotnetModule: add `testFilters` arg (#336571)
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/ne/nexusmods-app/package.nix32
1 files changed, 15 insertions, 17 deletions
diff --git a/pkgs/by-name/ne/nexusmods-app/package.nix b/pkgs/by-name/ne/nexusmods-app/package.nix
index 9d4c3947d97a..03784eeb34c3 100644
--- a/pkgs/by-name/ne/nexusmods-app/package.nix
+++ b/pkgs/by-name/ne/nexusmods-app/package.nix
@@ -71,25 +71,23 @@ buildDotnetModule (finalAttrs: {
 
   doCheck = true;
 
-  dotnetTestFlags = [
-    "--environment=USER=nobody"
-    (
-      "--filter="
-      + lib.strings.concatStringsSep "&" (
-        [
-          "Category!=Disabled"
-          "FlakeyTest!=True"
-          "RequiresNetworking!=True"
-          "FullyQualifiedName!=NexusMods.UI.Tests.ImageCacheTests.Test_LoadAndCache_RemoteImage"
-          "FullyQualifiedName!=NexusMods.UI.Tests.ImageCacheTests.Test_LoadAndCache_ImageStoredFile"
-        ]
-        ++ lib.optionals (!_7zz.meta.unfree) [
-          "FullyQualifiedName!=NexusMods.Games.FOMOD.Tests.FomodXmlInstallerTests.InstallsFilesSimple_UsingRar"
-        ]
-      )
-    )
+  dotnetTestFlags = [ "--environment=USER=nobody" ];
+
+  testFilters = [
+    "Category!=Disabled"
+    "FlakeyTest!=True"
+    "RequiresNetworking!=True"
   ];
 
+  disabledTests =
+    [
+      "NexusMods.UI.Tests.ImageCacheTests.Test_LoadAndCache_RemoteImage"
+      "NexusMods.UI.Tests.ImageCacheTests.Test_LoadAndCache_ImageStoredFile"
+    ]
+    ++ lib.optionals (!_7zz.meta.unfree) [
+      "NexusMods.Games.FOMOD.Tests.FomodXmlInstallerTests.InstallsFilesSimple_UsingRar"
+    ];
+
   passthru = {
     tests =
       let