Skip to content

pytestコマンドだけでテストを実行できるようにする #3

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

Merged
merged 11 commits into from
May 13, 2021

Conversation

yattom
Copy link
Contributor

@yattom yattom commented May 10, 2021

'python setup.py test' でテストを実行するのはdeprecatedになっている。

https://github.com/pypa/setuptools/blob/317ad2c4c9edf793e65372e80ec2d64f4edf147f/setuptools/command/test.py#L213

実行コマンドも長いので、pytestのみ(あるいはtoxのみ)でテストを実行したい。

こちらのPR #2 を前提としている。

@yattom yattom changed the title [WIP] running test from setup.py is deprecated running test from setup.py is deprecated May 10, 2021
@yattom yattom changed the title running test from setup.py is deprecated pytestコマンドだけでテストを実行できるようにする May 10, 2021
Copy link
Member

@grimrose grimrose left a comment

Choose a reason for hiding this comment

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

💯


.. code-block:: sh

$ python setup.py test
$ pytest
Copy link
Member

Choose a reason for hiding this comment

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

LGTM 👍

@grimrose grimrose merged commit 5fc6d42 into tddbc:master May 13, 2021
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