-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add poetry to handle the tests of the git extras (#1121)
* chore: add poetry to handle the tests of the git extras * chore(ci): upgrade the deps version * chore(CONTRIBUTING): remove the test description
- Loading branch information
Showing
5 changed files
with
172 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Test for git-extras | ||
The git-extras has its own testcases now, and the more is on the way! So let's introduce it. | ||
|
||
We choose python to help us to reach to other shore cause **python is life saver**. | ||
|
||
The test part depends on: | ||
|
||
* python >= 3.11 | ||
* poetry >= 1.7.1 | ||
* pytest >= 7.4 | ||
* gitpython >= 3.1.40 | ||
|
||
So the versions are higher than above is recommended. | ||
|
||
# How to test | ||
1. Install `poetry` | ||
2. Install the dependencies via `poetry install --no-root` | ||
3. Run `poetry run pytest` | ||
|
||
It is done or go without `poetry`, | ||
|
||
1. Install python >= 3.11 | ||
2. Install pytest >= 7.4 | ||
3. Install gitpython >= 3.1.40 | ||
4. Run `pytest` | ||
|
||
The second way maybe blocked the some missing dependencies at someday, so the first one is recommended. | ||
|
||
# References | ||
* [poetry](https://github.com/python-poetry/poetry) | ||
* [pytest](https://github.com/pytest-dev/pytest/) | ||
* [git python](https://github.com/gitpython-developers/GitPython) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[tool.poetry] | ||
name = "git-extras-tests" | ||
version = "0.1.0" | ||
description = "tests for git extras" | ||
authors = ["vanpipy <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
pytest = "7.4" | ||
gitpython = "3.1.40" | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "7.4" | ||
addopts = "-ra -q" | ||
testpaths = ["."] | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |