commercialhaskell / commercialhaskell/stack
Unhappy about `stack test --test-arguments`
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
Hi
I wonder if there is a way to improve the long winded way to pass test arguments.
It took me a good 10 minutes including my best google-fu to find out how to run only a subset of my hspec tests (I am new to hspec). The end result is:
`stack test --test-arguments "-m "`
This is pretty long-winded, and when I return to using Haskell and Hspec after some weeks, I have to look it up again. Repeating this in custom bash functions or Makefiles is also not very nice.
I think Haskell as a whole would benefit if common operations like this would be easier to type and remember. Take Go, which focuses on simple usage and batteries included:
`go test -run `
Maybe stack could have specific subcommands for testing frameworks like hspec, so one could run `stack hspec -m ` or similar (and all other args that hspec is taking
I am aware that stack might not be the optimal place to cater to individual packages, but on the other hand, stack is more and more the goto tool for Haskell development, and I think it is worth including more batteries to make Haskell and everything around it even easier to use.
Thoughts?
Contributor guide
Assessment
This issue has not been assessed yet.