Answer the question
In order to leave comments, you need to log in
Why does cabal test consider all tests passed?
I decided that even my small personal project is better to be done in a human way, including writing tests for it. Here is the Blabla.cabal snippet :
test-suite blabla-test
main-is: Test.hs
hs-source-dirs: tests, src
build-depends: base >=4 && < 5, parsec >= 3, HUnit >= 1
type: exitcode-stdio-1.0
default-language: Haskell2010
import Test.HUnit
import Text.ParserCombinators.Parsec hiding (spaces)
-- src/Module1.hs, src/Module2.hs, ...
import Module1
import Module2
...
test1 = ...
test2 = ...
...
tests = TestList [test1, test2, ...]
main = runTestTT tests
### Failure in: 1
test1 description ...
expected: 1
but got: 2
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question