emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

How to write test for my weppy app ? #70

Closed toplinuxsir closed 8 years ago

toplinuxsir commented 8 years ago

I think this is a wonderfull python web framework , But, I can not find how to write test for my webpy app in official document.

gi0baro commented 8 years ago

Hi @toplinuxsir, unfortunately the test client (#40) is planned for the next release. 0.6 should come by the end of the year, with this revision testing facilities will be implemented and documented.

toplinuxsir commented 8 years ago

Thanks for your work!

Giovanni Barillari notifications@github.com于2015年12月4日 周五下午6:48写道:

Hi @toplinuxsir https://github.com/toplinuxsir, unfortunately the test client (#40 https://github.com/gi0baro/weppy/issues/40) is planned for the next release. 0.6 should come by the end of the year, with this revision testing facilities will be implemented and documented.

— Reply to this email directly or view it on GitHub https://github.com/gi0baro/weppy/issues/70#issuecomment-161935601.

gi0baro commented 8 years ago

@toplinuxsir I've just pushed on master a first implementation of the testing suite with https://github.com/gi0baro/weppy/commit/10b174a8a512cc8e39cb1b8a0302e17658470d99

I have to write the documentation, but if you look at https://github.com/gi0baro/weppy/blob/master/examples/bloggy/tests.py it might give you an idea on how it works (pytest based tests, but you can use unittest2 or whatever). Feedbacks are always welcome :)

gi0baro commented 8 years ago

I'm closing this since 0.6 is released. Check out the documentation for the tests: http://weppy.org/docs/0.6/testing