Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Migrate Python scripts to Python 3 | Alexis Hildebrandt | 2023-12-04 | 1 | -2/+1 |
| | |||||
* | Remove obsolete from __future__ imports | Alexis Hildebrandt | 2023-02-01 | 1 | -1/+0 |
| | |||||
* | Replace os.path.abspath with os.path.realpath | Alexis Hildebrandt | 2022-07-01 | 1 | -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 compatible | Daniel Coonce | 2021-02-02 | 1 | -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 compatible | Alexis Hildebrandt | 2019-12-05 | 1 | -17/+31 |
| | |||||
* | Fix test harness to work with msys2 | Evan Mallory | 2016-09-23 | 1 | -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 documentation | Alexis Hildebrandt | 2015-07-28 | 1 | -0/+1 |
| | | | | in long documentation examples. | ||||
* | [tests] Minor test/DocTests.py clean up | Alexis Hildebrandt | 2015-02-20 | 1 | -16/+7 |
| | |||||
* | [doc] Add support for additional input files | Alexis Hildebrandt | 2015-02-20 | 1 | -2/+12 |
| | | | in test/DocTests.py by allowing file: and with_file: options on examples. | ||||
* | [tests] Improve error reporting for test/DocTests.py | Alexis Hildebrandt | 2015-02-20 | 1 | -7/+9 |
| | |||||
* | [tests] Add output when skipping incomplete tests | Alexis Hildebrandt | 2015-02-20 | 1 | -1/+7 |
| | | | in test/DocTests.py | ||||
* | [tests] Clean-up test/DocTests.py | Alexis Hildebrandt | 2015-02-20 | 1 | -17/+19 |
| | | | | * Replace hard-coded strings with token variables * Use os.path.join to create file paths | ||||
* | [tests] Allow testing of multi-line examples | Alexis Hildebrandt | 2015-02-18 | 1 | -1/+1 |
| | |||||
* | [doc] Improve @smallexample command line parsing | Alexis Hildebrandt | 2015-01-27 | 1 | -2/+4 |
| | | | | by using Python shlex. | ||||
* | [tests] Capture stderr when running DocTests | Alexis Hildebrandt | 2015-01-21 | 1 | -1/+1 |
| | |||||
* | [tests] Refactor CheckTests.py into custom scripts | Alexis Hildebrandt | 2015-01-21 | 1 | -1/+2 |
| | |||||
* | [tests] Add examples parameter to DocTests | Alexis Hildebrandt | 2014-12-30 | 1 | -2/+15 |
| | | | to test the given examples only instead of every example. | ||||
* | [test] Use --args-only option in DocTests.py | Alexis Hildebrandt | 2014-12-24 | 1 | -1/+1 |
| | | | | instead of --init-file /dev/null | ||||
* | Fix DocTests running in non-standard width terminal | Alexis Hildebrandt | 2014-12-03 | 1 | -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 and | Peter Feigl | 2014-03-04 | 1 | -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 commands | Alexis Hildebrandt | 2014-02-19 | 1 | -26/+47 |
| | |||||
* | DocTests: Allow multiple example inputs | Alexis Hildebrandt | 2014-02-19 | 1 | -0/+5 |
| | | | | to be used as single ledger data for an example command | ||||
* | Add proper argument parsing to DocTests.py | Alexis Hildebrandt | 2014-02-09 | 1 | -20/+36 |
| | |||||
* | Print summary list of failed doc tests if any | Alexis Hildebrandt | 2014-02-09 | 1 | -3/+6 |
| | |||||
* | Add support to check documentation examples with inline data | Alexis Hildebrandt | 2014-02-07 | 1 | -9/+36 |
| | |||||
* | Check examples in documentation when running tests | Alexis Hildebrandt | 2014-02-07 | 1 | -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. |