ennocramer / floskell

Floskell is a flexible Haskell source code pretty printer.
BSD 3-Clause "New" or "Revised" License
178 stars 22 forks source link

Test fails #48

Open GuillaumeDesforges opened 4 years ago

GuillaumeDesforges commented 4 years ago

While packaging haskell-language-server on nixpkgs: https://github.com/NixOS/nixpkgs/pull/91279

I encountered floskell error on check phase:

Running 1 test suites...
Test suite floskell-test: RUNNING...
floskell-test: styles/base.md: openBinaryFile: does not exist (No such file or directory)
Test suite floskell-test: FAIL
ennocramer commented 4 years ago

It seems in the nix environment the test is run with a different working directory compared to non-nix cabal test/stack test runs. I'm looking into using the full source path to load the test files.