hledger/tests/journal
Simon Michael b1f3880c3d lib: drop the file format auto-detection feature
For a long time hledger has auto-detected the file format when it's
not known, eg when reading from a file with unusual extension (like
.dat or .txt), or from standard input (-f-), or when using the include
directive (which currently ignores file extensions).

Auto-detecting has been done by trying all readers until one succeeds.
This could guess wrong in some cases, but it was so rare that it has
been working fine.

Recently, more conveniences have been added to timedot format,
increasing its overlap with journal format, which makes this kind of
auto-detection unreliable.

Auto-detection and auto-detection failures are (probably) still pretty
rare in practice. But when it does happen it's confusing, giving
misleading errors or false successes (eg printing timedot entries
instead of a journal error).

For predictability and to minimise confusion, hledger no longer tries
to guess; when there's no file extension or reader prefix, it assumes
journal format. To specify one of the other formats, you must use a
standard file extension (.timeclock, .timedot, .csv, .ssv, .tsv), or a
reader prefix (-f csv:foo.txt, -f timedot:-).

For now, the include directive still tries to autodetect
(journal/timeclock/timedot), and this can't be overridden; it will be
fixed later.

Experimental; testing and feedback welcome.
2020-03-01 14:06:29 -08:00
..
a.timeclock func. test for 320 2016-05-18 13:10:41 -07:00
amounts-and-commodities.test Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
anon.test cli: anonymize transaction code also 2019-11-18 17:42:22 -08:00
auto-postings.test lib: apply canonical display styles to auto posting amounts too 2020-01-31 06:00:06 -08:00
b.timedot func. test for 320 2016-05-18 13:10:41 -07:00
balance-assertions.test Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
blank-description.test tests: make functional tests use "hledger" again 2015-07-12 12:29:53 -07:00
comments.test Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
dates.test Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
default-commodity.test journal: default commodity (D) limits display precision too (#1187) 2020-02-11 09:47:26 -08:00
directives-account.test Get "make functest" working again 2020-01-07 15:58:54 -08:00
directives.test tests: clean up directives test files 2018-10-10 20:31:08 -07:00
include.test Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
numbers.test lib: "decimal point" -> "decimal separator" in error message 2018-08-17 07:37:26 +01:00
parens-in-account-name.test Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
parse-errors.test lib: drop the file format auto-detection feature 2020-03-01 14:06:29 -08:00
parse-sample-journal.test tests: make functional tests use "hledger" again 2015-07-12 12:29:53 -07:00
posting-dates.test Get "make functest" working again 2020-01-07 15:58:54 -08:00
precision.test lib: more cleanup of amount canonicalisation helpers (#1187) 2020-02-11 09:23:04 -08:00
scientific.test Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
status.journal lib, cli: -U/--uncleared no longer matches pending things (#564) 2017-06-15 19:16:39 -07:00
status.test Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
transaction-prices.test Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
unbalanced.test tests: make functional tests use "hledger" again 2015-07-12 12:29:53 -07:00
valuation2.test Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
valuation.test print: be sure to value all postings; -V/-X/--value now imply -x 2020-02-10 12:41:36 -08:00
virtual-postings.test Balance Assignments and accounts resetting (#438) 2016-12-10 07:04:48 -08:00