summaryrefslogtreecommitdiff
path: root/test/DocTests.py
Commit message (Collapse)AuthorAgeFilesLines
* Migrate Python scripts to Python 3Alexis Hildebrandt2023-12-041-2/+1
|
* Remove obsolete from __future__ importsAlexis Hildebrandt2023-02-011-1/+0
|
* Replace os.path.abspath with os.path.realpathAlexis Hildebrandt2022-07-011-2/+2
| | | | | | to fix failing tests on Darwin, where /tmp is a symlink to /private/tmp and the tests fail as ledger reports filenames with the symlink resolved to /private/tmp, but the tests expect files with /tmp.
* Make test harness more Windows compatibleDaniel Coonce2021-02-021-11/+10
| | | | | Windows doesn't seem to use UTF-8 by default, so we can specify encoding='utf-8'. Also, backslashes are confusing to regex parsers.
* Make tests scripts Python 3 compatibleAlexis Hildebrandt2019-12-051-17/+31
|
* Fix test harness to work with msys2Evan Mallory2016-09-231-0/+2
| | | | | | With this change, 97% of the tests pass. See the build on appveyor for more info: https://ci.appveyor.com/project/Evan/ledger/build/build-49 I'll follow up with another PR to fix some of the remaining broken tests
* [tests] Allow string continuation in documentationAlexis Hildebrandt2015-07-281-0/+1
| | | | in long documentation examples.
* [tests] Minor test/DocTests.py clean upAlexis Hildebrandt2015-02-201-16/+7
|
* [doc] Add support for additional input filesAlexis Hildebrandt2015-02-201-2/+12
| | | in test/DocTests.py by allowing file: and with_file: options on examples.
* [tests] Improve error reporting for test/DocTests.pyAlexis Hildebrandt2015-02-201-7/+9
|
* [tests] Add output when skipping incomplete testsAlexis Hildebrandt2015-02-201-1/+7
| | | in test/DocTests.py
* [tests] Clean-up test/DocTests.pyAlexis Hildebrandt2015-02-201-17/+19
| | | | * Replace hard-coded strings with token variables * Use os.path.join to create file paths
* [tests] Allow testing of multi-line examplesAlexis Hildebrandt2015-02-181-1/+1
|
* [doc] Improve @smallexample command line parsingAlexis Hildebrandt2015-01-271-2/+4
| | | | by using Python shlex.
* [tests] Capture stderr when running DocTestsAlexis Hildebrandt2015-01-211-1/+1
|
* [tests] Refactor CheckTests.py into custom scriptsAlexis Hildebrandt2015-01-211-1/+2
|
* [tests] Add examples parameter to DocTestsAlexis Hildebrandt2014-12-301-2/+15
| | | to test the given examples only instead of every example.
* [test] Use --args-only option in DocTests.pyAlexis Hildebrandt2014-12-241-1/+1
| | | | instead of --init-file /dev/null
* 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.