tj.git-extras/tests
2024-01-30 10:43:32 +08:00
..
conftest.py test(git-authors): add unit test (#1098) 2023-11-18 10:20:19 +08:00
helper.py test(git-authors): add unit test (#1098) 2023-11-18 10:20:19 +08:00
poetry.lock test(git-browse): add unit tests (#1127) 2024-01-05 14:31:37 +08:00
pyproject.toml test(git-browse): add unit tests (#1127) 2024-01-05 14:31:37 +08:00
README.md chore: add poetry to handle the tests of the git extras (#1121) 2023-12-01 14:25:14 +08:00
test_authors.py test(git-authors): add unit test (#1098) 2023-11-18 10:20:19 +08:00
test_git_abort.py feat(auto-test): CI with pytest (#1066) 2023-09-19 11:11:43 +08:00
test_git_alias.py test(git-alias): add its unit test (#1077) 2023-09-27 10:21:35 +08:00
test_git_archive_file.py Improve defaults for testing suite (#1104) 2023-11-11 12:55:46 +08:00
test_git_browse.py test(git-browse): add unit tests (#1127) 2024-01-05 14:31:37 +08:00
test_git_browse_ci.py test(browse-ci): add unit tests (#1130) 2024-01-30 10:43:32 +08:00

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