haskell / haskell/cabal

Unit tests don't respond to "-h"

Open
#7,580 2 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/test cabal-testsuite re: help-text
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**

Running `cabal test unit-tests --test-options=-h` inside `Cabal-tests`, I'd expect to see (something like) tasty's argument listing: https://github.com/UnkindPartition/tasty#runtime

Instead, it appears to be ignored (but `-p pattern` *does* work).

**To Reproduce**

```
$ cd Cabal-tests
$ cabal test unit-tests --test-options=-h
[...]
Building test suite 'unit-tests' for Cabal-tests-3..
Running 1 test suites...
Test suite unit-tests: RUNNING...
Test suite unit-tests: PASS
Test suite logged to:
/s/cabal/dist-newstyle/build/x86_64-osx/ghc-8.10.4/Cabal-tests-3/t/unit-tests/test/Cabal-tests-3-unit-tests.log
1 of 1 test suites (1 of 1 test cases) passed.
```

**Expected behavior**
I'd expect command line help for the test suite, particularly how to choose tests.

**System information**
- Operating system macos
- `cabal` current master

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.