Skip to content

Enable copying test binaries to a canonical location #4654

Closed
@iand675

Description

@iand675

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 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.

Actual

No test bins.

Stack version

$ stack --version
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1

Method of installation

  • Official binary, downloaded from stackage.org or fpcomplete's package repository

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions