John Wiegley
0a9cc833ad
Added a regression test relating to forecasting
2009-11-02 01:59:43 -05:00
John Wiegley
4a249d6172
Fixed issues with period strings like "2009/10"
2009-11-02 01:59:24 -05:00
John Wiegley
90c7298049
Renamed the DocTests to ManualTests
2009-11-02 01:58:53 -05:00
John Wiegley
3a0879aff0
Added "reported posts" into account xdata
...
This is necessary because sometimes, a post from one account will get
reported as though it were in another account (this happens with
--budget, to show child account postings within their parent account).
In that case, the account needs to remember which postings have been
reported as being within it, so that it can add these amounts to its own
total in the balance report.
2009-11-02 01:40:07 -05:00
John Wiegley
4db60bb464
Added several new regression tests
2009-11-02 01:21:45 -05:00
John Wiegley
95e08cc46f
Make the source directory available to all tests
2009-11-02 00:48:32 -05:00
John Wiegley
307b63be77
Fixed baseline tests relating to earlier changes
2009-11-02 00:32:34 -05:00
John Wiegley
46a419a5da
Added DocTests to verify documentation examples
2009-11-01 21:18:09 -05:00
John Wiegley
55f5868380
Setting --date-format in ~/.ledgerrc works again
2009-10-29 00:52:51 -04:00
John Wiegley
d6d8ed6d99
Fixes to the Python unit tests
2009-10-28 23:09:35 -04:00
John Wiegley
9a07652fd8
Disabled some of the expression tests under Python
2009-10-28 22:50:33 -04:00
John Wiegley
47df7dd60e
Rewrote the report query parser
...
It is now a full parser that parses report queries directly into value
expression trees. These then get rendered into text so that other
options may extend the expression.
2009-10-28 18:40:31 -04:00
John Wiegley
65e8eca6cf
The test harness needs to run without the pager
2009-10-28 02:30:51 -04:00
John Wiegley
16dbd019bc
Colorization at the terminal now on by default
2009-10-28 02:13:54 -04:00
John Wiegley
18a1c8a3fb
No more trailing spaces in the print report
2009-10-28 01:43:04 -04:00
John Wiegley
559566751d
Sort by default unless --unsorted is selected
2009-10-28 01:17:10 -04:00
John Wiegley
ab433d28e0
Support a --now option, for testing purposes
...
This sets Ledger's notion of the "current time" to the given date. This
makes it possible to have stable output from budgeting and forecasting
reports, for the sake of baseline tests.
2009-10-27 21:32:55 -04:00
John Wiegley
05529b2c68
Call times_initialize/shutdown in the unit tests
2009-10-25 05:40:26 -04:00
John Wiegley
fc84eeb358
Rewrote the way date and time I/O is managed
2009-10-25 05:01:47 -04:00
John Wiegley
f161aea8ce
Removed reliance on strptime/strftime
...
The code now uses Boost's input and output facets for times and dates.
This ensures completely consistency regarding timezones and times, and
fixes the regression test that was broken while I was away coding in
London (where it was GMT-0 and I didn't notice the difference between
local and GMT).
2009-10-11 05:19:01 -04:00
John Wiegley
1a8e835bfe
Disabled the --seed regression test
...
There is already a much more comprehensive test for "generate --seed".
2009-10-11 05:10:43 -04:00
John Wiegley
e8f315f00d
Correctly align amounts formatted as "%12(amount)"
2009-06-28 15:53:46 +01:00
John Wiegley
6e582a8777
Added four missing baseline tests
2009-06-28 15:51:05 +01:00
John Wiegley
7b05595699
Improved usefulness of the "print --anon" output
2009-06-27 01:45:31 +01:00
John Wiegley
2ef1934bb0
Restored --price option, added baseline test
...
This option reports only in terms of the annotated price of the
commodities involved, otherwise it reports the amounts themselves. It
can be used in conjunction with other reports, as it applies to the
displayed amounts, not the actual amounts being calculated.
2009-06-26 17:15:35 +01:00
John Wiegley
4574c30fcf
The --download option is now fully restored
2009-06-26 16:52:41 +01:00
John Wiegley
127e5e7ad2
Added baseline test for --only
2009-06-21 20:33:30 +01:00
John Wiegley
8cb80185d5
Restored the --truncate option, added baseline test
2009-06-21 19:06:07 +01:00
John Wiegley
c1307445c1
Added baseline: --sort, --sort-all, --sort-xacts
2009-06-21 18:52:01 +01:00
John Wiegley
f83a1c8873
Restored --unround, added baseline test
2009-06-21 18:37:39 +01:00
John Wiegley
ba0dd89356
Added baseline: --subtotal, --total-data, --total
2009-06-21 18:08:55 +01:00
John Wiegley
521b935aa8
Restored --percent option, added baseline test
2009-06-21 18:07:27 +01:00
John Wiegley
add2ffd5f3
Added baseline tests for --lot-tags and --lots-actual
2009-06-19 20:52:24 +01:00
John Wiegley
189bbd1546
Added baseline test for --limit
2009-06-19 20:40:15 +01:00
John Wiegley
1dc21c2d34
Added baseline test for --seed
2009-06-18 18:42:48 +01:00
John Wiegley
56555f3870
Added baseline tests for --related, --related-all
2009-06-18 16:20:22 +01:00
John Wiegley
af8eeb34db
Added baseline test for --quantity
2009-06-18 16:18:35 +01:00
John Wiegley
6dd362dfde
Added baseline tests for --print,register-format
2009-06-18 16:12:27 +01:00
John Wiegley
4253c2a35d
Allow uncommoditized amounts to be used as costs
2009-06-18 16:10:08 +01:00
John Wiegley
8d97adec7b
Restored --plot-amount-format, --plot-total-format
2009-06-18 16:08:43 +01:00
John Wiegley
8dbf458e14
Restored --prices-format options
2009-06-18 01:50:06 +01:00
John Wiegley
1fd4387b67
Restored pricesdb command and --pricesdb-format option
2009-06-18 01:49:49 +01:00
John Wiegley
47d237e18b
Restored --input-date-format option
2009-06-18 01:36:24 +01:00
John Wiegley
141e60c7a7
Added baseline test for --real
2009-06-18 01:26:08 +01:00
John Wiegley
95be19dd28
Added baseline test for --period
2009-06-18 01:24:05 +01:00
John Wiegley
8121e0b178
Added regression test for period range fix
2009-06-18 01:23:06 +01:00
John Wiegley
cb2e596725
The --revalued option now honors the -e terminus
2009-06-17 16:54:02 +01:00
John Wiegley
3a926da4cb
When --end is used, set a "terminus" date
...
This means that final balance valuations (with -V or -X) will be done in
terms of the date given to --end, rather than based on the current day.
Fixes 647D5DB9-DBBB-47C8-80CE-F3F70E3B0253
2009-06-16 18:49:27 +01:00
John Wiegley
849e4b2fbb
Added test for D943AE0F-44EA-47EE-BA85-AFC513E039EB
2009-06-16 18:29:26 +01:00
John Wiegley
9655f43bed
Added test for 5FBF2ED8-EEAA-440E-AED5-67401B107E44
2009-06-16 18:28:05 +01:00