diff options
author | Pjotr Prins | 2018-03-30 08:14:02 +0000 |
---|---|---|
committer | Pjotr Prins | 2018-03-30 08:14:02 +0000 |
commit | c4d3f406fb01f81b2b952a622f2f7bb0967c8c91 (patch) | |
tree | 6abc6dbe8a60dac7fd13991930a793d303e53c58 /test/requests/test-website.py | |
parent | 13ba222e4a04c514d10c35caafb5297309914d4c (diff) | |
download | genenetwork2-c4d3f406fb01f81b2b952a622f2f7bb0967c8c91.tar.gz |
Add --fail argument to test runner
Diffstat (limited to 'test/requests/test-website.py')
-rwxr-xr-x | test/requests/test-website.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/requests/test-website.py b/test/requests/test-website.py index 2bef6eb1..118c9df1 100755 --- a/test/requests/test-website.py +++ b/test/requests/test-website.py @@ -8,12 +8,16 @@ import argparse from link_checker import check_links from mapping_tests import check_mapping from main_web_functionality import check_main_web_functionality +import link_checker +import sys print("Mechanical Rob firing up...") def run_all(args_obj, parser): print("") print("Running all tests.") + print(args_obj) + link_checker.DO_FAIL = args_obj.fail check_main_web_functionality(args_obj, parser) check_links(args_obj, parser) check_mapping(args_obj, parser) @@ -32,6 +36,8 @@ This is Mechanical-Rob - an automated web server tester for """ parser = argparse.ArgumentParser(description=desc) +parser.add_argument("--fail", help="Fail and stop on any error", action="store_true") + parser.add_argument("-d", "--database", metavar="DB", type=str , default="db_webqtl_s" , help="Use database (default db_webqtl_s)") |