Skip to content

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

Merged
grimrose merged 11 commits into
tddbc:masterfrom
yattom:no_setup
May 13, 2021
Merged

pytestコマンドだけでテストを実行できるようにする#3
grimrose merged 11 commits into
tddbc:masterfrom
yattom:no_setup

Conversation

@yattom

Copy link
Copy Markdown
Contributor

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

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

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

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

@yattomyattom changed the title [WIP] running test from setup.py is deprecatedrunning test from setup.py is deprecatedMay 10, 2021
@yattomyattom changed the title running test from setup.py is deprecatedpytestコマンドだけでテストを実行できるようにするMay 10, 2021

@grimrosegrimrose left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯

Comment threadREADME.rst
.. code-block:: sh

$ python setup.py test
$ pytest

Copy link
Copy Markdown
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:masterMay 13, 2021
Sign up for freeto 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

@yattom@grimrose