hugo_themes_report/test
Trent Palmer 45099f8405 fix desc for Agnes in test/test_showing_columns.py 2023-08-29 18:02:04 -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 extend get_themes_orderedby_cname() in test/database.py 2021-11-24 16:59:32 -08: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_features.py fix string slice in test_description_per_features.py 2021-08-23 14:57:19 -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_filterby_features.py test_filterby_features.py fix indent 2021-08-26 23:12:30 -07:00
test_filterby_license.py add test_filterby_license.py 2021-08-25 12:10:23 -07:00
test_filterby_minver.py add test_filterby_minver.py 2021-08-24 21:09:39 -07:00
test_filterby_tags.py add test_filterby_tags.py 2021-08-25 20:13:18 -07:00
test_minus_button.py add test_minus_button.py 2021-08-21 15:18:55 -07:00
test_multiple_filters.py add test_multiple_filters.py 2021-08-26 23:14:26 -07:00
test_plus_button.py add test_plus_button.py 2021-08-21 15:19:08 -07:00
test_scroll.py fix window sizes in tests 2021-09-08 15:07:41 -07:00
test_selection_options_menu.py add test_selection_options_menu.py 2021-08-23 14:48:53 -07:00
test_selenium.py fix window sizes in tests 2021-09-08 15:07:41 -07:00
test_showing_columns.py fix desc for Agnes in test/test_showing_columns.py 2023-08-29 18:02:04 -07:00
test_sort_by.py add test_sort_by.py (and theme_compare.py and add function to 2021-08-24 18:37:10 -07:00
test_title.py fix window sizes in tests 2021-09-08 15:07:41 -07:00
theme_compare.py fix sortByLicense in test/theme_compare.py 2022-09-19 10:25:39 -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>