hledger test -h suggests hledger test -- -pData.Amount --color=never as an example of passing options to the tasty test runner. This works with hledger 1.41:
$ hledger-1.41 test -- -pData.Amount --color=never
hledger
Hledger
Data
Amount
Amount
amountCost: OK
amountLooksZero: OK
negating amounts: OK
adding amounts without costs: OK
showAmount: OK
MixedAmount
comparing mixed amounts compares based on quantities: OK
adding mixed amounts to zero, the commodity and amount style are preserved: OK
adding mixed amounts with total costs: OK
showMixedAmount: OK
showMixedAmountWithoutCost: OK
amounts
a missing amount overrides any other amounts: OK
costless same-commodity amounts are combined: OK
amounts with same unit cost are combined: OK
amounts with different unit costs are not combined: OK
amounts with total costs are combined: OK
mixedAmountStripCosts: OK
All 16 tests passed (0.45s)
but is broken in hledger 1.42:
$ hledger-1.42.1 test -- -pData.Amount --color=never
Invalid option `-pData.Amount'
Usage: hledger-1.42.1 [(-p|--pattern PATTERN)] [-t|--timeout DURATION]
[--hide-progress] [-l|--list-tests]
[-j|--num-threads NUMBER] [-q|--quiet] [--hide-successes]
[--min-duration-to-report DURATION]
[--color never|always|auto] [--ansi-tricks ARG]
Also, it used to be easier to select a subset of tests, by providing simple arguments. Since about hledger 1.17 or so you have to use -- and know the tasty test runner's CLI. This command is not much used, but still.
hledger test -hsuggestshledger test -- -pData.Amount --color=neveras an example of passing options to the tasty test runner. This works with hledger 1.41:but is broken in hledger 1.42:
Also, it used to be easier to select a subset of tests, by providing simple arguments. Since about hledger 1.17 or so you have to use
--and know the tasty test runner's CLI. This command is not much used, but still.