HSpec でテスト スイートを指定するにはどうすればよいですか? モジュールごとに複数のテスト ファイルを作成し、すべてのテストを実行し*.hs
たいだけです。stack test
設定方法を教えてください。
cabal ファイルに次のようなテスト モジュールをリストしようとしましたが、うまくいきません。
test-suite foo-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
, Mod1Spec.hs
build-depends: base
, containers >= 0.5.6.2
, hqfl
, hspec >= 2.2.3
, hspec >= 2.2.3
, mtl >= 2.2.1
, pipes >= 4.1.8
, random >= 1.1
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010