[OH-Dev] Logging and Testing Improvements for OpenHatch
Asheesh Laroia
lists at asheesh.org
Sun May 4 22:53:59 UTC 2014
Hi Carol!
I left a few small ideas on the pull request.
In general, huge +1 to never using "print" and always using a call to
logger or logging.
Django provides some kind of framework for helping with this, but I haven't
gotten around to understanding it yet.
To reply more specifically:
> Suggestion #1: "Ability to run tests and suppress other info (logging and
print statements) from output to the console."
This gets my +1 !
> Suggestion #2: More flexibility in logging information and output to
files to aid in debugging
This gets my +0, so long as that flexibility doesn't carry a large
cognitive burden for contributors/developers.
I would secretly probably be equally happy with a giant switch to
enable/disable a firehose, since at the point where you want to see
anything, it's sometimes hard to know which things to enable.
Having said that, I'm fine with more flexibility, so long as it is easy for
everyone. I think you're in a good position to make those kinds of judgment
calls.
> Suggestion #3: Better documentation of tests and test runners as well as
logging
Mega +1.
Yesterday I referred some people toward
https://openhatch.org/wiki/Automated_testing which was useful, but surely
could be better.
On Sun, May 4, 2014 at 9:51 AM, Carol Willing <
willingc at willingconsulting.com> wrote:
> Currently, there's a combination of print statements, testing info, and
> logging info displayed to the console when "python manage.py test" is run.
> The output can be confusing to new users running tests.
>
> I've been playing around with testing (pytest, coverage, etc.) and logging
> (Python logging docs) for the past few weeks. Yesterday, I had a few hours
> and attempted to clean up the OpenHatch output to the console when running
> all tests. A very much work in process is here:
> https://github.com/willingc/oh-mainline/tree/logging-indiv
>
> Asheesh and I had talked a while back about making testing more user
> friendly. Shauna mentioned that there was some discussion on IRC this
> morning re: testing.
>
> So, here are some thoughts on what I as a user would find useful:
>
> Suggestion #1: Ability to run tests and suppress other info (logging and
> print statements) from output to the console.
>
> Suggestion #2: More flexibility in logging information and output to files
> to aid in debugging
>
> Suggestion #3: Better documentation of tests and test runners as well as
> logging
>
> Any thoughts, suggestions, or best practices on approaching and managing
> the development approach to improve testing and logging would be very
> welcome.
>
> Thanks!
> Carol
>
> P.S. I'm finding that I enjoy documentation, testing, and logging since I
> think it improves developer productivity. I would very much like to
> contribute to OpenHatch in these areas.
>
> --
> Carol Willing
> Developer
> Willing Consulting
>
> _______________________________________________
> Devel mailing list
> Devel at lists.openhatch.org
> http://lists.openhatch.org/mailman/listinfo/devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openhatch.org/pipermail/devel/attachments/20140504/3fed65b1/attachment.html>
More information about the Devel
mailing list