Skip to content

Unify, document and fix functional tests internal updating process #4004

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

Conversation

Pierre-Sassoulas
Copy link
Member

Description

This fix the problem we had with the command supposed to update functional tests. It uniformize it between legacy and current functional tests, document it for legacy tests and fix it for current functional tests.

Type of Changes

Type
🐛 Bug fix
🔨 Refactoring
📜 Docs

@Pierre-Sassoulas Pierre-Sassoulas added Bug 🪲 task Needs review 🔍 Needs to be reviewed by one or multiple more persons labels Jan 1, 2021
if len(sys.argv) > 1:
FILTER_RGX = sys.argv[1]
del sys.argv[1]
pytest.main(sys.argv)
if UPDATE_FILE.exists():
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the intention here to delete it only after the tests complete successfully or in all the cases, including test failures? Worth putting in a try-finally if it's the latter.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 98dc5ca

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 90.653% when pulling fb29593 on Pierre-Sassoulas:unify-functional-test-update into f95bbac on PyCQA:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 90.653% when pulling fb29593 on Pierre-Sassoulas:unify-functional-test-update into f95bbac on PyCQA:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 90.653% when pulling fb29593 on Pierre-Sassoulas:unify-functional-test-update into f95bbac on PyCQA:master.

@coveralls
Copy link

coveralls commented Jan 1, 2021

Coverage Status

Coverage increased (+0.001%) to 90.661% when pulling 98dc5ca on Pierre-Sassoulas:unify-functional-test-update into f95bbac on PyCQA:master.

@Pierre-Sassoulas Pierre-Sassoulas merged commit 9f06778 into pylint-dev:master Jan 1, 2021
@Pierre-Sassoulas Pierre-Sassoulas deleted the unify-functional-test-update branch January 1, 2021 15:42
@Pierre-Sassoulas Pierre-Sassoulas removed the Needs review 🔍 Needs to be reviewed by one or multiple more persons label Nov 19, 2021
@Pierre-Sassoulas Pierre-Sassoulas added Maintenance Discussion or action around maintaining pylint or the dev workflow and removed task labels Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 Maintenance Discussion or action around maintaining pylint or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants