Commit graph

6 commits

Author SHA1 Message Date
Norwid Behrnd
fa392db03d clarify how to invoke pytest
Maintainers/developers of pytest have little influence only if
pytest (for Python 3) in Linux is invoked by pytest, or pytest-3.
Commit accounts for their clarification provided.
2022-01-09 10:21:26 +01:00
Norwid Behrnd
b92a5c23de add minimal Emacs parameter block
To ensure e.g., coherent indentation of Python snippets tangled,
the explicit adjustment of Emacs' parameters is useful.  The .org
file now contains the block the previous commit omitted.  While
descriptions were edited, there is no functional change in the
files tangled.
2022-01-03 16:53:31 +01:00
Norwid Behrnd
7504aead86 Continue on all tests, even if one fails.
The retraction of the -x parameter for pytest ensures that all
test functions defined are actually used.  Previously, testing
stopped immediately, conveying an incomplete picture of date2name's
work implemented.  Testing the retraction option -r, there is no
need for a delay between the indivdual options, either.
2021-09-28 14:26:46 +00:00
Norwid Behrnd
2e3654fd78 error retracting tags, ticketed version
The development version on GitHub offers the option to retract
time stamps date2name prepended to the files' file names.  As this
version of the test script reveals, stamps obtained with the option
--withtime however are not fully reverted.  The finding was shared
with Karl Voit as an issue for date2name earlier today (2021-09-22)
for a cross check.
2021-09-22 21:00:53 +00:00
Norwid Behrnd
7dc1dc6d2e Correct errors calling/documenting the tests. 2021-09-17 16:16:52 +00:00
Norwid Behrnd
2af0ee87df initialize programmatic tests (with pytest)
An Emacs .org file is the source in to (re)create a Python script
to perform a few tests on date2name's functions to prepend a date/
time stamp.  The .org file equally is source for the Makefile to
automate the testing even further.

Set up for and tested in Linux Debian 12/bookworm (branch testing)
with Python 3.9.2, pytest 6.2.4 (for Python 3); GNU Make 4.3;
GNU Emacs 27.1 backed by elpa org 9.4.0.
2021-09-02 14:52:09 +00:00