From 2504671b3a8a1f257a7ee5d4de2b5326a1263ad1 Mon Sep 17 00:00:00 2001 From: Raza Sayed Date: Fri, 24 Apr 2020 12:12:55 +0530 Subject: [PATCH] Renamed run_tests.py to run_postman_tests.py and ignoring for nose test runner --- chatbot_ner/settings.py | 1 + postman_tests/Readme.md | 4 ++-- postman_tests/{run_tests.py => run_postman_tests.py} | 0 run_postman_tests.sh | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) rename postman_tests/{run_tests.py => run_postman_tests.py} (100%) diff --git a/chatbot_ner/settings.py b/chatbot_ner/settings.py index 4cf50fe37..982411435 100755 --- a/chatbot_ner/settings.py +++ b/chatbot_ner/settings.py @@ -109,6 +109,7 @@ def __getitem__(self, item): '--ignore-files=constants.py', '--ignore-files=start_server.sh', '--ignore-files=settings.py', + '--ignore-files=run_postman_tests.py', '--exclude-dir=docs/', '--exclude-dir=docker/', '--exclude-dir=data/', diff --git a/postman_tests/Readme.md b/postman_tests/Readme.md index 309a6f061..2da8b1e62 100644 --- a/postman_tests/Readme.md +++ b/postman_tests/Readme.md @@ -1,13 +1,13 @@ **Running the tests** ``` -docker exec -it docker_chatbot-ner_1 python postman_tests/run_tests.py +docker exec -it docker_chatbot-ner_1 python postman_tests/run_postman_tests.py ``` Or ``` -docker exec -it docker_chatbot-ner_1 python postman_tests/run_tests.py --html +docker exec -it docker_chatbot-ner_1 python postman_tests/run_postman_tests.py --html ``` The ```--html``` argument will generate a html report in ```postman_tests/newman_reports``` diff --git a/postman_tests/run_tests.py b/postman_tests/run_postman_tests.py similarity index 100% rename from postman_tests/run_tests.py rename to postman_tests/run_postman_tests.py diff --git a/run_postman_tests.sh b/run_postman_tests.sh index e23f146cd..44b0d3596 100755 --- a/run_postman_tests.sh +++ b/run_postman_tests.sh @@ -1,7 +1,7 @@ #!/bin/bash if [ "$1" == "--html" ]; then - docker exec -it docker_chatbot-ner_1 python postman_tests/run_tests.py --html + docker exec -it docker_chatbot-ner_1 python postman_tests/run_postman_tests.py --html else - docker exec -it docker_chatbot-ner_1 python postman_tests/run_tests.py + docker exec -it docker_chatbot-ner_1 python postman_tests/run_postman_tests.py fi