Issue 9215

Title
Remove usage of setup.py test
Priority
feature
Status
chatting
Nosy list
ced, pokoli
Assigned to
Keywords

Created on 2020-04-09.13:18:02 by pokoli, last changed 3 months ago by ced.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-10-23.00:56:50

Maybe we could migrate from tox to nox which is configured with Python file. So we could implement the computation of the test requirements.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-09-17.13:26:42

Maybe we could use an extras_require test keyword to install the test dependencies.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-04-09.14:23:06
It is probably not so easy because tests_require is also deprecated. So this means that they should be declared in tox.ini but we can not use python code to construct dependencies per series.
Also we have a specific test_loader which calls the `suite` method. It should be tested that TestLoader.discover is really a drop replacement.
Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2020-04-09.13:18:01
In [1] a deprecation warning was added to remove test. Altought we are using tox, currently tox is calling directly setup.py which still emit the warning. 

We should probably modify tox command:

commands = {envpython} -m unittest discover   

This will avoid the instalation of external dependencies for just running the test.


[1] https://github.com/pypa/setuptools/commit/cd84510713ada48bf33d4efa749c2952e3fc1a49
History
Date User Action Args
2021-10-23 00:56:50cedsetmessages: + msg71254
2021-09-17 13:26:42cedsetmessages: + msg70180
2021-09-17 11:45:18davelinkissue10762 superseder
2020-04-09 14:23:07cedsetstatus: unread -> chatting
nosy: + ced
messages: + msg56952
keyword: - easy
2020-04-09 13:18:02pokolicreate

Showing 10 items. Show all history (warning: this could be VERY long)