summaryrefslogtreecommitdiff
path: root/test/DocTests.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix DocTests running in non-standard width terminalAlexis Hildebrandt2014-12-031-2/+3
| | | | | | | | The changes introduced with 56976a127c081a6a008c81966360003a8711a319 make --columns default to terminal width, as returned by ioctl() break the DocTests when run in a terminal with a width different from the standard of 80 columns.
* Added support for validation tests to DocTest.py (input:validate andPeter Feigl2014-03-041-11/+37
| | | | | | | | | | | | | | command:validate) It is now possible to use @smallexample @c input:validate (and command:validate) to specify that an example should just be read by ledger (and checked for errors) or that a ledger command should be executed (with default input -f sample.dat, if none is specified). These annotations have been added into ledger3.texi where appropriate. Running the ledger3.texi test now takes a second or two, but a lot of the @smallexamples are now automatically tested.
* DocTests: Allow inline input to be used with different example commandsAlexis Hildebrandt2014-02-191-26/+47
|
* DocTests: Allow multiple example inputs Alexis Hildebrandt2014-02-191-0/+5
| | | | to be used as single ledger data for an example command
* Add proper argument parsing to DocTests.pyAlexis Hildebrandt2014-02-091-20/+36
|
* Print summary list of failed doc tests if anyAlexis Hildebrandt2014-02-091-3/+6
|
* Add support to check documentation examples with inline dataAlexis Hildebrandt2014-02-071-9/+36
|
* Check examples in documentation when running testsAlexis Hildebrandt2014-02-071-0/+139
The DocTests.py script will parse a given texinfo file for specially marked examples, run the ledger command from the example, and check the result against the example output from the documentation.