Skip to content

Commit 3722c76

Browse files
authored
Merge pull request #2354 from gitpython-developers/docs/test-install-instructions
docs: align source-checkout test instructions with pytest
2 parents 27769ab + be0f675 commit 3722c76

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎doc/source/intro.rst‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,16 @@ and cloned using::
9595

9696
$ git clone https://github.com/gitpython-developers/GitPython git-python
9797

98-
Finally verify the installation by running unit tests::
98+
To run the test suite, change into the checkout and install the test dependencies.
99+
The tests require Python 3.11 or later, Git 2.52 or later, and Bash. Select a
100+
backend before running pytest::
99101

100-
$ python -m unittest
102+
$ cd git-python
103+
$ python -m pip install -e ".[test]"
104+
$ GIT_PYTHON_BACKEND=cli python -m pytest
105+
106+
See `CONTRIBUTING.md <https://github.com/gitpython-developers/GitPython/blob/main/CONTRIBUTING.md>`_
107+
for more information about running and contributing tests.
101108

102109
Questions and Answers
103110
=====================

0 commit comments

Comments
 (0)