Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: use pytest for unit tests and coverage#1028

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
nejch wants to merge1 commit intopython-gitlab:masterfromnejch:chore/pytest-for-unit-tests
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions.gitignore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
*.pyc
build/
dist/
htmlcov/
MANIFEST
.*.swp
*.egg-info
.idea/
docs/_build
.coverage
.testrepository/
.tox
venv/
4 changes: 0 additions & 4 deletions.testr.conf
View file
Open in desktop

This file was deleted.

2 changes: 1 addition & 1 deletionMANIFEST.in
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
include COPYING AUTHORS ChangeLog.rst RELEASE_NOTES.rst requirements.txt test-requirements.txt rtd-requirements.txt
include tox.ini .testr.conf .travis.yml
include tox.ini .travis.yml
recursive-include tools *
recursive-include docs *j2 *.py *.rst api/*.rst Makefile make.bat
recursive-include gitlab/tests/data *
4 changes: 2 additions & 2 deletionstest-requirements.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
coverage
discover
testrepository
hacking>=0.9.2,<0.10
httmock
jinja2
mock
pytest
pytest-cov
sphinx>=1.3
sphinx_rtd_theme
10 changes: 6 additions & 4 deletionstox.ini
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,7 +12,7 @@ install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --testr-args='{posargs}'
pytest{posargs} gitlab/tests

[testenv:pep8]
commands =
Expand All@@ -39,9 +39,11 @@ commands = python setup.py build_sphinx

[testenv:cover]
commands =
python setup.py testr --slowest --coverage --testr-args="{posargs}"
coverage report --omit=*tests*
coverage html --omit=*tests*
pytest --cov gitlab --cov-report term --cov-report html \
{posargs} gitlab/tests

[coverage:run]
omit = *tests*

[testenv:cli_func_v4]
commands = {toxinidir}/tools/functional_tests.sh -a 4 -p 2
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp