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

[testutil] Add proper test for the functional tests helpers #8484

Conversation

Pierre-Sassoulas
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas commented Mar 22, 2023

Type of Changes

Type
✨ New feature

Description

Required for #8474, the output update was been broken a lot previously. We don't need the user warning because either we're going to fail with a message telling to update the output or we're already going to update the output.

@Pierre-Sassoulas Pierre-Sassoulas added Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry labels Mar 22, 2023
@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.0.0a6 milestone Mar 22, 2023
@github-actions

This comment has been minimized.

@Pierre-Sassoulas Pierre-Sassoulas force-pushed the add-tests-for-functional-update branch 2 times, most recently from e42d9e5 to ee8baf2 Compare March 23, 2023 09:50
@codecov
Copy link

codecov bot commented Mar 23, 2023

Codecov Report

Merging #8484 (0ff5d86) into main (eeb3eec) will increase coverage by 0.09%.
The diff coverage is 100.00%.

❗ Current head 0ff5d86 differs from pull request most recent head 8f0de6d. Consider uploading reports for the commit 8f0de6d to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8484      +/-   ##
==========================================
+ Coverage   95.81%   95.91%   +0.09%     
==========================================
  Files         174      174              
  Lines       18334    18365      +31     
==========================================
+ Hits        17567    17615      +48     
+ Misses        767      750      -17     
Impacted Files Coverage Δ
pylint/testutils/output_line.py 97.05% <ø> (-2.95%) ⬇️
...lint/testutils/functional/find_functional_tests.py 100.00% <100.00%> (ø)
pylint/testutils/lint_module_test.py 94.35% <100.00%> (+9.74%) ⬆️

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Pierre-Sassoulas Pierre-Sassoulas force-pushed the add-tests-for-functional-update branch 3 times, most recently from e7d092d to 9515a70 Compare March 23, 2023 13:49
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Collaborator

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

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

I left some early comments. Note that I find it quite hard to review, feels like a lot of refactoring and actual code changes are included here. Perhaps split the refactoring + fixes and the adding of tests in two separate PRs?

pylint/testutils/output_line.py Show resolved Hide resolved
tests/testutils/test_functional_testutils.py Outdated Show resolved Hide resolved
tests/testutils/test_functional_testutils.py Show resolved Hide resolved
@Pierre-Sassoulas
Copy link
Member Author

Created #8490 to simplify the review.

@github-actions

This comment has been minimized.

Copy link
Collaborator

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

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

Thanks @Pierre-Sassoulas! Wonderful that all of this code is finally getting tested.

I reviewed this commit by commit as just final diff is still quite large. I think it is probably best to go through them commit by commit as well as the comments make more sense then!

Again, love this! Makes it much easier to use this for plugins as well!

tests/testutils/test_functional_testutils.py Outdated Show resolved Hide resolved
pylint/testutils/functional/find_functional_tests.py Outdated Show resolved Hide resolved
pylint/testutils/functional/find_functional_tests.py Outdated Show resolved Hide resolved
tests/testutils/test_functional_testutils.py Outdated Show resolved Hide resolved
pylint/testutils/functional/find_functional_tests.py Outdated Show resolved Hide resolved
tests/testutils/test_functional_testutils.py Show resolved Hide resolved
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Collaborator

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

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

Sorry for taking so long to review this! Hard to find the time to get back into this. Think we are getting there though! Love the idea of all of this being actually tested 😄

@github-actions

This comment has been minimized.

DanielNoord
DanielNoord previously approved these changes Mar 28, 2023
@DanielNoord
Copy link
Collaborator

Thanks again @Pierre-Sassoulas for all the work that went into this!

@Pierre-Sassoulas
Copy link
Member Author

I'm going to cleanup and rebase :)

@DanielNoord
Copy link
Collaborator

I'm going to cleanup and rebase :)

I'll be right here to approve and let auto-merge do its magic 😄

@Pierre-Sassoulas Pierre-Sassoulas merged commit 7702955 into pylint-dev:main Mar 28, 2023
@Pierre-Sassoulas Pierre-Sassoulas deleted the add-tests-for-functional-update branch March 28, 2023 19:49
@github-actions
Copy link
Contributor

🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉

This comment was generated for commit 8f0de6d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants