title: Setting up a test suite in HSpec
body: <p>How do I specify test suites in HSpec? I'm going to have multiple <code>*.hs</code> test files for each of my modules and I want to just run <code>stack test</code> and for all of the tests to run. How do I set that up?</p>
  
  <p>I tried to list the test modules like this in my cabal file but it doesn't work:</p>
  
  <pre><code>test-suite foo-test
    type:                exitcode-stdio-1.0
    hs-source-dirs:      test
    main-is:             Spec.hs
                       , Mod1Spec.hs
    build-depends:       base
                       , containers &gt;= 0.5.6.2
                       , hqfl
                       , hspec &gt;= 2.2.3
                       , hspec &gt;= 2.2.3
                       , mtl &gt;= 2.2.1
                       , pipes &gt;= 4.1.8
                       , random &gt;= 1.1
    ghc-options:         -threaded -rtsopts -with-rtsopts=-N
    default-language:    Haskell2010
  </code></pre>