zenika-open-source/FAQ

Add tests

開放

#138 建立於 2018年11月17日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (16 個分叉)auto 404
discussionhelp wantedpriority/medium

倉庫指標

星標
 (63 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南