mirror of
https://github.com/novoid/date2name.git
synced 2026-02-16 21:04:17 +00:00
20 lines
858 B
Makefile
20 lines
858 B
Makefile
# GNU Make file for the automation of pytest for date2name.
|
|
#
|
|
# While the test script is written for Python 3.9.2, you might need to
|
|
# adjust the following instruction once in case your OS includes pytest
|
|
# for legacy Python 2 side by side to Python 3, or only hosts pytest
|
|
# for Python 3. The tests in script test_date2name.py are set up to
|
|
# work with pytest for Python 3; dependent on your installation, which
|
|
# may be named pytest-3, or (again) pytest.
|
|
#
|
|
# Put this file like test_date2name.py in the root folder of date2name
|
|
# fetched from PyPi or GitHub. Then run
|
|
#
|
|
# chmod +x *
|
|
# make ./Makefile
|
|
#
|
|
# to run the tests. The test sequence either stops at the first test
|
|
# failing, or after completion.
|
|
|
|
# pytest -xv test_date2name.py # only pytest for Python 3 is present
|
|
pytest-3 -xv test_date2name.py # pytest if Python 2 and Python 3 coexist
|