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

Testing with Apiary

One of the best and most important features of Apiary is the ability to verify that the implementation of an API is actually consistent with its design, for example, an API blueprint. This is critical because in many occasions developers might deviate from the actual design and without the ability to test this, issues could occur later in the lifecycle whereby API consumers don't get the API they expected.

To prevent this issue from materializing, the Test your API feature of Apiary allows for a utility call Dredd to be download and installed. Dredd can then be used to automatically verify that a service endpoint matches a given API definition:

Personal view–tests

Note that the use of Dredd for API unit testing is covered extensively in Chapter 3, Designing the API.

主站蜘蛛池模板: 嘉荫县| 金秀| 砚山县| 长治市| 九寨沟县| 韶关市| 宜城市| 金寨县| 阳原县| 平果县| 永顺县| 东源县| 驻马店市| 东宁县| 平南县| 鸡西市| 楚雄市| 苏尼特左旗| 额济纳旗| 右玉县| 微博| 莱芜市| 宜兰市| 台东市| 盱眙县| 古丈县| 潮州市| 连州市| 拉萨市| 南投县| 河北省| 鄱阳县| 信丰县| 桐梓县| 高安市| 洞口县| 长沙县| 兴业县| 五指山市| 孟村| 肥乡县|