haskell-nix/hnix-store

Switch derivation test from `-core` to `hspec(-golden)`

Open

#261 opened on Nov 26, 2023

 (0 comments) (0 reactions) (0 assignees)Haskell (26 forks)github user discovery
coregood first issue

Repository metrics

Stars
 (99 stars)
PR merge metrics
 (Avg merge 20d 16h) (3 merged PRs in 30d)

Description

It is the only remaining test using tasty and tasty-golden.

There's also a problem with it - it works when run via cabal test core but not via cabal run core as the directory prefix is in the way and it has trouble finding fixture(s). Similar problem was resolved in -nar https://github.com/haskell-nix/hnix-store/blob/master/hnix-store-nar/tests/NarFormat.hs#L171-L187 where it tries both with and without a subdir.

Contributor guide