对微服务Api的实践
资料
Test-Driven-Development for building APIs in Node.js and Express
说明:针对的express框架如何开展tdd的步骤。
指出从如何从功能测试(集成测试),引出单元测试(function函数测试)
说明:使用express的crud操作阐述tdd过程。
同样提到了功能测试(集成测试)和单元测试(function函数测试)
提出了一个很好的解决测试数据的问题,自动生成:faker.js
Test Driven Development with Node, Postgres, and Knex (Red/Green/Refactor)
说明:详细使用Red/Green/Refactor的原则的crud操作阐述tdd过程。
字段全校验
其他参考:
BDD/TDD development from scratch with node.js/express
Building Node.js REST API with Express.js, MongoDB & TDD – Tutorial
TDD: Testing NodeJS and React with Mocha, Chai, Sinon and Enzyme
Node Express TDD with RESTful API in Intellij
Test-driven Development of Node.js APIs
Express Routes: A TDD Approach
Using Test-Driven Development for Microservices (Lex)
Last updated