zenika-open-source/FAQ

Add tests

Aperta

#138 aperta il 17 nov 2018

 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (16 fork)auto 404
discussionhelp wantedpriority/medium

Metriche repository

Star
 (63 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Is your feature request related to a problem? Please describe. As more and more functionalities are implemented in the project, we need to implement tests to assure the application is working as expected.

Describe the solution you'd like Following the project architecture, we want to test the following parts (and sub-parts) of our application

  • Client
    • Shared components: Snapshots & unit tests
    • Helpers: Unit tests
    • Scenes: End to end tests
    • Services: Mocking + unit tests ?
  • Server
    • Resolvers: Mocking + unit tests ?
    • Helpers: Unit tests
    • Integrations: Mocking + unit tests ?

Some useful links: https://github.com/APIs-guru/graphql-faker

Additional context As writing tests are often considered (wrongly) as a misuse of a developer's time, we need to favor the DX (developer experience): Writing a new test should be as simple as possible.

Guida contributor