commercialhaskell / commercialhaskell/stack

:tests syntax refuses to run multiple tests

Open
#2,149 1 comment 0 reactions 0 assignees View on GitHub
awaiting pull request component: options parsing type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

#### Steps to reproduce:

Create a multi-package project, each package containing a test suite with name **tests**.

Then run:

```
$ stack build :tests
Error parsing targets: Ambiugous component name tests, matches: [(package-a,CTest "tests"),(package-b,CTest "tests")]
```
#### Expected:

The tests suites of both packages would be built and executed.
#### Actual:

stack refuses to build any tests. Instead one has to list all the packages explicitly:

```
stack build package-a:tests package-b:tests
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.