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.

Note: unless otherwise noted, tasks usually refer to moin2 (http://moinmo.in/MoinMoin2.0)!

Discussion

MoinMoin: EasyToDo/write tests for views (last edited 2011-11-21 21:36:27 by ReimarBauer)