haskell / haskeline

A Haskell library for line input in command-line programs.
https://hackage.haskell.org/package/haskeline
BSD 3-Clause "New" or "Revised" License
221 stars 75 forks source link

define test targets in the cabal file #101

Closed luntain closed 5 years ago

luntain commented 5 years ago

I defined targets in the cabal file for tests. Added run-unit-tests.sh script. I had to make some changes in examples/Test.hs for it to compile.

There is one unit test failing. I don't think it is my fault. Perhaps you can check it out.

$ ./run-unit-tests.sh

Failure in: 0:interaction:2:tab completion:0

tests/RunTTY.hs:102 expected: ["dummy-\206\188\206\177\207\131/\r\nbar \207\130\206\181\207\129\207\132\r\n0:dummy-\206\188\206\177\207\131/"] but got: ["dummy-\206\188\a\a"] Cases: 26 Tried: 26 Errors: 0 Failures: 1

I pulled -Wall and -Werror from the stack.yaml file into the cabal file, because it was preventing the tests from compiling as they trigger a lot of warnings.


This change is Reviewable