You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to store builds of a project's test suites as artifacts for usage on other machines. While stack is able to do this for normal executables, there doesn't seem to be a supported way to do this for test binaries. I can of course dig around in the .stack-work directories for each project, but it's not ideal.
Steps to reproduce
Run stack build --fast --test --no-run-tests --local-bin-path check --copy-bins in a project with tests and look at the contents of the check directory. There will be no test bins for the local packages.
Expected
If --copy-bins doesn't provide the functionality, I'd hope for a separate flag to support easy access to test bins.
Thanks @iand675 - even though there are existing workarounds this seems like it'd be a nice feature to have, and it makes sense given that you can already do this with regular binaries.
Any chance you'd like to submit a pull request to implement the behavior you're asking for above?
@malteneuss it seems that the issue is about providing similar functionality to what currently --copy-bins is doing, the change is that if --test is present, then we should also copy the test executables? Do I understand this correctly?
I think your interpretation is right @rabbitonweb.
I'm going to close based on the new policy I mentioned above since it's been more than 30 days and nobody has submitted a PR, but I'll add this idea as a feature request on our wishlist wiki.
General summary/comments (optional)
I would like to be able to store builds of a project's test suites as artifacts for usage on other machines. While stack is able to do this for normal executables, there doesn't seem to be a supported way to do this for test binaries. I can of course dig around in the
.stack-work
directories for each project, but it's not ideal.Steps to reproduce
Run
stack build --fast --test --no-run-tests --local-bin-path check --copy-bins
in a project with tests and look at the contents of thecheck
directory. There will be no test bins for the local packages.Expected
If
--copy-bins
doesn't provide the functionality, I'd hope for a separate flag to support easy access to test bins.Actual
No test bins.
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: