vendredi 8 mai 2015

Node.js testing - RESTful API - real world sample (http://ift.tt/1cvl8sI)

I'm looking for an (open source?) application from which I can learn Node.js testing best practices. Some requirements:

  • Node.js provided RESTful API (no HTML rendering)
  • Stack - http://ift.tt/1my3qGp
  • "Real world" sized app (10+ API endpoints, 5+ Mongo collections)
  • Covers unit AND integration tests (controller-only - model-only - controller-model-DB - full RES from request to response ie. supertest)
  • NOT interested in tooling setup/examples (mocha/supertest/chai ... plenty of samples out there)

There is a lot of simple examples that demonstrate tooling setup and basic TDD principles, but I was not able to find any real-world-sized application with decent test coverage to learn from.

Aucun commentaire:

Enregistrer un commentaire