Skip to content

Commit

Permalink
nexusmods-app: use testFilters & disabledTests args
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Aug 22, 2024
1 parent 1c379e3 commit a177c63
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions pkgs/by-name/ne/nexusmods-app/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,23 @@ buildDotnetModule rec {

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
Expand Down

0 comments on commit a177c63

Please sign in to comment.