Overview
- Title
- write high-level tests for all views
- Duration
- 144
- Difficulty
- Medium
- Types
- Quality Assurance,Code
- Tags
- python,mercurial,py.test,flask
- Mentors
- thomaswaldmann,rb_proj,waldi,esyr,pkumar_7
- Count
- -1
Description
Abstract
Write more high-level tests, requesting all (GET) views moin offers and checking the responses.
Details
See MoinMoin.apps.*._tests.* - there are some tests, but it is far from complete.
You can check for: expected http status code, no exception happening, expected value in response content.
The idea behind these tests is to get the views' code executed and to make sure it does not crash. It is not intended to check complete correctness of the response content.
It is important to first think about how to do such tests in a good way, do not just create a lot of copy&paste duplicated code!
Deliverables: patch or changeset
Benefits
If we have this, we'll have to do less manual testing and still can be save that all views still (basically) work.
Skill Requirements
See tags.
Links
Note: unless otherwise noted, tasks usually refer to moin2 (http://moinmo.in/MoinMoin2.0)!
http://hg.moinmo.in/moin/2.0 or http://bitbucket.org/thomaswaldmann/moin-2.0 - repository of moin2
http://hg.moinmo.in/moin/1.9 - repository of moin 1.9
http://moimo.in/MoinMoinChat - please join us on IRC #moin-dev