Skip to content

Commit

Permalink
[KYUUBI apache#6281][PY] Speed up testing with xdist plugin
Browse files Browse the repository at this point in the history
# 🔍 Description
## Issue References 🔗

This pull request fixes apache#6281

Following up to apache#6343 , this PR adds `pytest-xdist` plugin to speed up python client unit testing

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️
Running tests usually takes ~10 mins

#### Behavior With This Pull Request 🎉
Running tests can take up to 5 mins

#### Related Unit Tests

---

# Checklist 📝

- [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes apache#6369 from sudohainguyen/ci/speed-up-test.

Closes apache#6281

f0ce557 [Harry] [KYUUBI apache#6281][PY] Speed up testing with xdist plugin

Authored-by: Harry <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
  • Loading branch information
sudohainguyen authored and pan3793 committed May 8, 2024
1 parent d19119b commit 78e104d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mock==2.0.0
pycodestyle==2.3.1
pytest==7.4.4
pytest-cov==5.0.0
pytest-xdist==3.5.0

# actual dependencies: let things break if a package changes
sqlalchemy>=1.3.0
Expand Down
2 changes: 1 addition & 1 deletion python/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
tag_build =

[tool:pytest]
addopts = --tb=short --cov pyhive --cov-report html --cov-report term
addopts = -n 4 --tb=short --cov pyhive --cov-report html --cov-report term
norecursedirs = env
python_files = test_*.py
filterwarnings =
Expand Down

0 comments on commit 78e104d

Please sign in to comment.