Nest: Testing Documentation

Created on 4 Mar 2018  路  5Comments  路  Source: nestjs/nest

I'm submitting a...


[ ] Regression 
[ ] Bug report
[ ] Feature request
[X] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior


Looking through the documentation and the examples, testing feels like it is taking a back seat to delivering an exceptional Node framework.

Expected behavior


Let's try to make testing a first class citizen in the documentation and examples.

Minimal reproduction of the problem with instructions


N/A

What is the motivation / use case for changing the behavior?


Testing is fundamental to developing high-quality code and can make discovering problems so much easier in large scale enterprise and e-commerce applications. I don't think any of the examples contain tests and test documentation is limited to a couple of short pages. Specifically, the e2e testing documentation could probably use some love.

Environment

N/A

discussion 馃敟 type

Most helpful comment

To kick off the discussion, let me add the below:

  1. Tests should be wrote for all the examples.
  2. Run all tests in the examples as part of CI. Consider these e2e testing for Nest itself.
  3. Document unit and e2e testing of a controller and component that depends on the CQRS module.
  4. Document unit and e2e testing of microservice controller and component.
  5. Document unit and e2e testing of a middleware, pipe, guard, and interceptor for core, microservice, and websocket.

These are some initial items that I think could use a bit of love.

All 5 comments

To kick off the discussion, let me add the below:

  1. Tests should be wrote for all the examples.
  2. Run all tests in the examples as part of CI. Consider these e2e testing for Nest itself.
  3. Document unit and e2e testing of a controller and component that depends on the CQRS module.
  4. Document unit and e2e testing of microservice controller and component.
  5. Document unit and e2e testing of a middleware, pipe, guard, and interceptor for core, microservice, and websocket.

These are some initial items that I think could use a bit of love.

Hey Patrick, can you add also to document Mongoose testing? I can't seem to test models that I injected into services.

I totally agree with that. There're plans to significantly improve a documentation, but I'm a little bit behind due to development stuff so far. I promise it's gonna change in the near future :)

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings