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

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.

主站蜘蛛池模板: 林西县| 黄平县| 高雄县| 汉阴县| 苏州市| 克山县| 静安区| 南郑县| 平定县| 手机| 昌邑市| 江川县| 武山县| 华安县| 灌阳县| 逊克县| 邳州市| 邵东县| 武宁县| 沙湾县| 崇阳县| 哈尔滨市| 宁晋县| 米脂县| 葫芦岛市| 渝北区| 呼伦贝尔市| 保德县| 曲靖市| 乌兰县| 土默特左旗| 呼和浩特市| 兴文县| 含山县| 遂溪县| 云浮市| 西丰县| 兴山县| 万盛区| 昌乐县| 京山县|