This site is an archive; learn more about 8 years of OpenHatch.

[OH-Dev] Logging and Testing Improvements for OpenHatch

Carol Willing willingc at willingconsulting.com
Sun May 4 16:51:09 UTC 2014


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



More information about the Devel mailing list