mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-10-31 14:08:45 -07:00
.. | ||
__init__.py | ||
database.py | ||
README.md | ||
test_database.py | ||
test_description_per_features.py | ||
test_description_per_license.py | ||
test_description_per_min_hugo_version.py | ||
test_description_per_more_columns.py | ||
test_description_per_sort_by.py | ||
test_description_per_tags.py | ||
test_description.py | ||
test_filterby_license.py | ||
test_filterby_minver.py | ||
test_minus_button.py | ||
test_plus_button.py | ||
test_scroll.py | ||
test_selection_options_menu.py | ||
test_selenium.py | ||
test_showing_columns.py | ||
test_sort_by.py | ||
test_title.py | ||
theme_compare.py |
To run these tests just type the command
python3 -m unittest
Or you can just run a specific file of tests
python3 -m unittest test.test_title
Or run a specific test class in a specific file
python3 -m unittest test.test_title.TestTitle
Or run a specific test function in a specific class in a specific file
python3 -m unittest test.test_title.TestTitle.test_title_anchor
cron example everyday at 6am
#!/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin
0 4 * * * cd <project directory> && <rsync the db file>
0 5 * * * cd <project directory> && <rsync the html output directory>
0 6 * * * cd <project directory> && bash -c 'echo "$((python3 -m unittest)2>&1)"' | sendxmpp <sendxmpp params>