Skip to content

Commit

Permalink
Renamed run_tests.py to run_postman_tests.py and ignoring for nose te…
Browse files Browse the repository at this point in the history
…st runner
  • Loading branch information
razasayed committed Apr 24, 2020
1 parent 80b5a4d commit 2504671
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions chatbot_ner/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/',
Expand Down
4 changes: 2 additions & 2 deletions postman_tests/Readme.md
Original file line number Diff line number Diff line change
@@ -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```
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions run_postman_tests.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2504671

Please sign in to comment.