hugo_themes_report/test
Trent Palmer 72e583fa37 add test_description_per_tags.py 2021-08-22 11:05:55 -07:00
..
README.md add cron example to test/README.md 2021-08-21 13:18:42 -07:00
__init__.py add unittest test_title 2021-08-20 11:40:12 -07:00
database.py add unittests for database 2021-08-21 09:56:14 -07:00
test_database.py add unittests for database 2021-08-21 09:56:14 -07:00
test_description.py add test_description.py 2021-08-21 21:00:17 -07:00
test_description_per_license.py add test_description_per_license.py 2021-08-22 07:11:15 -07:00
test_description_per_min_hugo_version.py rename function test_description_per_min_hugo_version.py 2021-08-22 07:09:08 -07:00
test_description_per_more_columns.py rename function test_description_per_more_columns.py 2021-08-22 07:10:43 -07:00
test_description_per_sort_by.py add test_description_per_sort_by.py 2021-08-21 21:01:23 -07:00
test_description_per_tags.py add test_description_per_tags.py 2021-08-22 11:05:55 -07:00
test_minus_button.py add test_minus_button.py 2021-08-21 15:18:55 -07:00
test_plus_button.py add test_plus_button.py 2021-08-21 15:19:08 -07:00
test_scroll.py add unittest test_scroll.py 2021-08-21 16:05:41 -07:00
test_selenium.py add unittests for database 2021-08-21 09:56:14 -07:00
test_title.py fix line length test_title.py 2021-08-21 15:18:09 -07:00

README.md

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>