官术网_书友最值得收藏!

Introduction

After working with the same development environment (Plone in our case) for a while, we tend to get more confident in our code. It's natural to believe that the more I know about something, the more I can do something similar correctly the first time I try it. Paradoxically, this is a mistake in programming, as it will lead to more mistakes.

During development, automated testing is the key practice we should keep as a continuous process of evolution to prevent these errors. It allows us to write testing code that can be run automatically after every code change in order to verify the consistency and correctness of those changes.

Note

Testing is a means of assuring programming quality.

In the following sections, we'll introduce some core concepts of testing and create some rather straightforward examples to demonstrate all the tests we'll add to our products in further chapters:

  • Unit tests
  • Integration tests
  • Functional tests.

The following glossary contains a short explanation of basic testing notions.

Glossary

Note

All along the book we will mainly write doctest, our choice over PyUnit.

主站蜘蛛池模板: 泾川县| 双辽市| 诸城市| 德安县| 海口市| 太白县| 湘阴县| 蒙自县| 镇远县| 通化县| 山西省| 斗六市| 红河县| 乌拉特中旗| 绥棱县| 桃园县| 东安县| 赣榆县| 峨眉山市| 辰溪县| 页游| 仪征市| 个旧市| 阿拉善左旗| 滨州市| 武安市| 邹平县| 成都市| 图木舒克市| 苍山县| 清水河县| 昭觉县| 大港区| 吉安县| 洪湖市| 绥阳县| 旬阳县| 饶阳县| 房产| 拉萨市| 冷水江市|