-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add poetry to handle the tests of the git extras #1121
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
45c2b56
chore: add poetry to handle the tests of the git extras
vanpipy 1980978
Merge remote-tracking branch 'origin/main' into feature/poetrible
vanpipy 9258aa0
chore(ci): upgrade the deps version
vanpipy 9ee4e33
chore(CONTRIBUTING): remove the test description
vanpipy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should duplicate information be removed from the
Testing
section under theCONTRIBUTING.md
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya..I misremember the test content written before. I just wonder why i cannot find it 🤣