Open AriFordsham opened 3 years ago
@AriFordsham, I am working through open issues, including old ones. From my perspective, Stack is behaving as expected:
--test
you are asking for test suite components of packages to be added to the targets;stack ghci
, the test suites will not be run (the --no-run-tests
flag is set automatically). Stack informs you that is the case;
General summary/comments (optional)
stack ghci --test
is mentioned in the docs as being supported, but behaves strangely in my projectSteps to reproduce
Project with library, no executable, multiple test suites
package.yaml: (excerpts)
stack ghci
stack ghci --tests
Expected
ghci
loads, with no main module, 'cos there's none undersrc
stack
runs test suite, and if successful, loadsghci
without main module as above.Actual
What actually happened.
stack ghci
runs as expected.stack ghci --test
:main
s undertest
. (No-one asked it to loadtest
, except to run tests) and asks to specify a main moduleghci
output: https://gist.github.com/AriFordsham/cbc6802f0f1edacd5d6a2b3f5a190970
Stack version
Method of installation
Debian repo