| 1 |
test |
| 2 |
|
| 3 |
Run built-in unit tests. |
| 4 |
|
| 5 |
Flags: |
| 6 |
no command-specific flags |
| 7 |
|
| 8 |
This command runs the unit tests built in to hledger and hledger-lib, |
| 9 |
printing the results on stdout. If any test fails, the exit code will be |
| 10 |
non-zero. |
| 11 |
|
| 12 |
This is mainly used by hledger developers, but you can also use it to |
| 13 |
sanity-check the installed hledger executable on your platform. All |
| 14 |
tests are expected to pass - if you ever see a failure, please report as |
| 15 |
a bug! |
| 16 |
|
| 17 |
Any arguments before a -- argument will be passed to the tasty test |
| 18 |
runner as test-selecting -p patterns, and any arguments after -- will be |
| 19 |
passed to tasty unchanged. |
| 20 |
|
| 21 |
Examples: |
| 22 |
|
| 23 |
$ hledger test # run all unit tests |
| 24 |
$ hledger test balance # run tests with "balance" in their name |
| 25 |
$ hledger test -- -h # show tasty's options |