Inside my .cabal file I have defined a test-suite with type: detailed-0.9
.
Cabals standart behavior when building this test suite seems to be that it appends the word Stub
to the name of the test suite.
For my test-suite named tests
, the .imports file is at dist/build/testsStub/testsStub-tmp/Main.imports
instead of dist/build/tests/tests-tmp/Main.imports
, where packunused is looking for it.
packunused throws the following error:
packunused: user error (output-dir "dist/build/tests/tests-tmp" does not exist; -- has 'cabal build' been performed yet? (see also 'packunused --help'))