I am trying to follow the examples from here http://www.haskell.org/cabal/users-guide/#test-suites
When I run cabal test it throws this error cabal: No test suites enabled. Did you remember to configure with '--enable-tests'?
so I try cabal configure --enable-tests and then cabal test but I now get
Running 1 test suites...
Test suite test-s3dm: RUNNING...
cabal: permission denied
What am I doing wrong?
You still need to actually build the tests and the program which you want to test. so you need to do
cabal buildafter configure.But I would agree that that error message should be something else.