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

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.

主站蜘蛛池模板: 福贡县| 台山市| 海原县| 外汇| 舞阳县| 五峰| 霞浦县| 苗栗县| 莆田市| 同心县| 永吉县| 邵东县| 安仁县| 洱源县| 霍城县| 尚志市| 金门县| 普兰县| 韩城市| 康马县| 成都市| 曲靖市| 盘山县| 万州区| 子洲县| 周宁县| 阳城县| 嘉义县| 清新县| 静安区| 福鼎市| 青冈县| 蓬溪县| 彩票| 白银市| 陇西县| 合山市| 慈溪市| 镇巴县| 徐水县| 惠东县|