Closed BebeSparkelSparkel closed 2 months ago
Can you exclude the Spec
module from Gild's discovery?
-- cabal-gild: discover tests --exclude=tests/Spec.hs
Thanks for the tip of using the exact path.
I had tried exclude with glob patterns as specified in the README but the patterns do not seem to work.
-- cabal-gild: discover tests --exclude=**/Spec.hs
-- cabal-gild: discover tests --exclude=*/Spec.hs
Which version are you using? Support for excluding patterns was added in Gild 1.3.2.0.
1.3.1.1
I am using hspc-discovery and the file Spec.hs has the main function and is not a module.
cabal-gild
addsSpec
toother-modules
causing the errorNon-modules should not be added to other modules especially if the file is listed with
main-is: Spec.hs