Conversation
|
ngl I'm not too familiar with nix test conventions haha, I'll check later more Are we now sorting arguments alphabetically? I thought we sorted them by first usage... I have no idea where this convention is defined though. We should probably set projectFile = "Scarab/Scarab.csproj";
testProjectFile = "Scarab.Tests/Scarab.Tests.csproj";to stop including the unit tests in the release build and also set doCheck = true;to actually run the unit tests, in a separate commit. |
mweinelt
left a comment
There was a problem hiding this comment.
That's overkill. You'll want testers.testVersion instead.
Good idea! But I can't get What gives? |
|
We are not going to boot up a VM to run the version test for a program.
This means HOME needs to be set in testVersion. Or you just use |
Thanks for the info; this sort of thing is not obvious ! I've asked upstream if they can patch to allow the program to print the version number without attempting to use a graphical environment. |
|
You can perhaps use the new hook tmpDirAsHomeHook for the test phase ? |
|
Some inspiration here: #378110 |
Thank you, but the bigger problem is that |
|
What's the status of this ? |
|
Description of changes
Simple verification that Scarab runs at all, to avoid regressions like #345038.
Depends on fifty-six/Scarab#241.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.