Skip to content

Some test refactoring #357

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 5 commits into from
Apr 7, 2025
Merged

Some test refactoring #357

merged 5 commits into from
Apr 7, 2025

Conversation

aaronliu0130
Copy link
Member

Sometimes, one hath th'need to debugst the tests. And 60s turned the good ol' debugger into Indiana Jones escapingst a rolling boulder. No more.
Before this, the exclude test did not test excluding at all and just duplicated all the errors contained in the other two .def's
This unfortunately means we must use test names like test_samples[silly-includeorder_cfirst] now.
todo(unknown)s were replaced with the appropriate todo(google)s credit (we do not have the knowledge to be more specific than that)
Obviously, we should still check all the changes to the test definitions. This script just makes finding these changes easier.
@@ -209,4 +208,4 @@ addopts = "--color=yes --cov-fail-under=90 --cov=cpplint"
python_files = [ "*test.py" ]
required_plugins = [ "pytest-cov", "pytest-timeout" ]
testpaths = [ "." ]
timeout = 60
timeout = 481
Copy link
Member

Choose a reason for hiding this comment

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

This seems like a massive change. Is there a particular versions of Python and/or operating system that is so slow?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not that it's slow, it's that I oftentimes find myself having to debug the tests, for which 1 minute is not enough for. My average debugging time is about 5 minutes, and 418 is my favorite number.

Copy link
Member

@cclauss cclauss Apr 7, 2025

Choose a reason for hiding this comment

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

@cclauss cclauss merged commit bbba111 into cpplint:develop Apr 7, 2025
11 checks passed
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy