Running unit tests from nix #444
-
Hi there, Thank you for your work on this flake-parts module ! I've been using nix for a little while now and I am trying to wrap my head around flake-parts. I have successfully written a flake.nix that does what I want for a very simple haskell project (one-file executable, library, and some HSpec unit tests, nothing fancy at all). I am confused by the "checks" autoWire setting. I remember reading somewhere in the doc that the haskell-flake provided a test output for checks. My understanding would be that when setting This is not the case in my setup, so either I have wildly misunderstood the effect of setting Any help would be greatly appreciated. Kind regards, -- J |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
haskell-flake/nix/modules/project/hls-check.nix Lines 90 to 92 in cc3bddb Your package's unit tests are run as part of building that package, unless |
Beta Was this translation helpful? Give feedback.
checks
currently includes HLS checks:haskell-flake/nix/modules/project/hls-check.nix
Lines 90 to 92 in cc3bddb
Your package's unit tests are run as part of building that package, unless
settings.*.check = false;
https://community.flake.parts/haskell-flake/settings