Skip to content

Running unit tests from nix #443

@jedesroches

Description

@jedesroches

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 autoWire = [ "checks" ] then when I execute nix flake check the unit tests would be run.

This is not the case in my setup, so either I have wildly misunderstood the effect of setting "checks" in the autoWire array, or I did something wrong in writing my nix code.

Any help would be greatly appreciated.

Kind regards,

-- J

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions