-
Notifications
You must be signed in to change notification settings - Fork 11
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
test.py #19
Comments
Oh, is this |
yeah, test.py's whole purpose is to throw an error |
Would you accept a pull request for me to turn that test into a https://docs.pytest.org/en/7.1.x/how-to/assert.html#assertions-about-expected-exceptions |
Well, as structured, test.py is a visual inspection test. You run the test script, it throws an error, and you inspect that the traceback shows up with syntax highlighting. Any attempt to turn that into a unit test would (1) need to test that the result has colors, and not just that an exception was thrown, (2) necessarily require multiple tests. So, the short answer to your question is "no," unless you can demonstrate that you have a solid grasp of the use cases covered by the existing test, and unless you can produce an alternative that does not significantly bloat the line count to cover those use cases. |
@staticshock my impression is:
|
New development on this project should target tangible improvements for prospective users, such as fixing issues experienced by users or adding features that would benefit them. Unless internally-motivated projects such as testing are anchored to user-facing goals, we have no real way of assessing their value. A common reason for investing in a test suite is to prevent regressions in the course of ongoing development. To that end, adding a way to check that this package works for all python versions that haven't been EOL'ed yet (currently that's all versions between 3.8 and 3.14) could be useful. |
Exactly. |
Hi,
I noticed that there is no documentation for how to run
test.py
.https://github.com/staticshock/colored-traceback.py/blob/master/test.py#L23
When should one run each of the test flags?
Does this file suffice for integration testing the package?
all best
The text was updated successfully, but these errors were encountered: