I'm trying to get unit tests and code coverage metrics for a web2py app. 

I'd had a quick stab at doing something myself using the unittest 
information here (http://www.web2py.com/AlterEgo/default/show/260). This 
got me unit tests that run within the web2py framework and then exit. These 
results cover controllers within the application. 

Since then I've added coverage metrics by calling coverage.py within those 
tests but the results of that don't seem to report on the controllers. Is 
this due to some quirk of the above method (e.g. using execfile rather than 
importing directly)? 

Thanks for any help that can be provided.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to