Skip to content
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

👷 ci: add xdoctest in pytest #12

Merged
merged 3 commits into from
Dec 28, 2023
Merged

Conversation

gouzil
Copy link
Collaborator

@gouzil gouzil commented Dec 28, 2023

添加xdoctest测试

截屏2023-12-28 上午8 59 55

@gouzil gouzil requested a review from zrr1999 December 28, 2023 01:00
@zrr1999 zrr1999 changed the title 👷: add xdoctest 👷 ci: add xdoctest Dec 28, 2023
pyproject.toml Outdated
@@ -70,7 +70,7 @@ test = [
"coverage",
]
[tool.pdm.scripts]
cov ={ composite = ["pytest tests --cov=pyfuture --cov-context=test", "coverage html --show-contexts {args}"]}
cov ={ composite = ["pytest tests --cov=pyfuture --cov-context=test --xdoctest ./tests ./pyfuture ", "coverage html --show-contexts {args}"]}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--xdoctest ./tests ./pyfuture 是不是应该改成--xdoctest ./pyfuture

./tests 里面是没有docstring的

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用 --xdoc 应该也可以

@zrr1999 zrr1999 changed the title 👷 ci: add xdoctest 👷 ci: add xdoctest in pytest Dec 28, 2023
@zrr1999 zrr1999 merged commit 574427b into pyfuture-dev:main Dec 28, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants