Skip to content

Commit d4482fa

Browse files
author
Gaurav Singh
committed
- Added pytest-xdist to Pipfile
- Updated README.md
1 parent b390b1b commit d4482fa

File tree

3 files changed

+114
-21
lines changed

3 files changed

+114
-21
lines changed

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jsonpath-ng = "*"
1414
cerberus = "*"
1515
reportportal-client = "*"
1616
pytest-reportportal = "*"
17+
pytest-xdist = {extras = ["psutil"], version = "*"}
1718

1819
[requires]
1920
python_version = "3.8"

Pipfile.lock

Lines changed: 89 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,30 @@ git checkout example/01_setup_python_dependencies
3333
git checkout <sha>
3434
```
3535

36+
## Application under test
37+
38+
This automated test suite covers features of `people-api`, Please refer the Github
39+
repo [here](https://github.com/automationhacks/people-api).
40+
41+
Note: These tests expect the `people-api` and `covid-tracker` API to be up. You would find instructions in
42+
the `people-api` repo
43+
44+
## How to run
45+
46+
```zsh
47+
# Setup report portal on docker
48+
# Update rp_uuid in pytest.ini with project token
49+
docker-compose -f docker-compose.yml -p reportportal up -d
50+
# Launch pipenv
51+
pipenv shell
52+
# Install all packages
53+
pipenv install
54+
# Run tests via pytest (single threaded)
55+
python -m pytest
56+
# RUn tests in parallel
57+
python -m pytest -n auto
58+
```
59+
3660
## Discuss?
3761

3862
Feel free to use the [Github discussions](https://github.com/automationhacks/course-api-framework-python/discussions/1)

0 commit comments

Comments
 (0)