I have a stack project set up but when I run stack test I do not get any output or errors. However if I run the test file directly runhaskell Tests.hs, I get my desired results.
c:\storeCredit>stack test
storeCredit-0.1.0.0: test (suite: storeCredit-test)
c:\storeCredit>
This is my .cabal file:
name: storeCredit
version: 0.1.0.0
build-type: Simple
library
hs-source-dirs: src
exposed-modules: StoreCredit
build-depends: base >= 4.7 && < 5
, split
, containers
default-language: Haskell2010
test-suite storeCredit-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Tests.hs
build-depends: base
, hspec
, split
, directory
, filepath
, containers
, storeCredit
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010
Aucun commentaire:
Enregistrer un commentaire