Try stack ghci (your project name):(the test suite name) . Then you can enter main and your tests will run.
Example:
If your .cabal project file had the following meanings:
name: ExampleProject ... test-suite Example-test
Then the command to run will be stack ghci ExampleProject:Example-test
(editing suggested by @Chris Stryczynski)
To see the test and src directories so that they are updated on reboot with :r , run:
stack ghci --ghci-options -isrc --ghci-options -itest ExampleProduct:Example-test
Libby
source share