testing html generation is one-now-more-than-ever-shrinking-part of testing an app. In this particular case, you won't have noticed a thing: the important bits were/are played by javascript interaction.
On Tuesday, January 27, 2015 at 10:38:49 PM UTC+1, Richard wrote: > > I would test the fact that html generated work properly, I guess Selenium > is the only way, but if I can interact with html object from python with > someting like HTMLTestRunner ( > http://tungwaiyip.info/software/HTMLTestRunner.html)... I never had time > to think about test cases worth doing over generated html... Actually, you > maybe right that it only allow to see if html get generated or compare html > generated to an reference html (mean something like having app serving to > test another app to make sure notting get modify on one hand without the > other know it... Mean a lot of work merging stuff between repo in orther to > maintain test case = a lot of works). > > Could you provide an example of good controller and view codes? Model is > easier... > > In web2py, I am not sure we can really divide each differents part in > M-V-C container... Look how you define validators over model field > definition (I know old raised point). > > Richard > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

