bow-swift / bow-arch

🏛 Functional Architecture in Swift using Bow
https://arch.bow-swift.io
Other
197 stars 5 forks source link

Give examples of testability #13

Open krawutzi opened 4 years ago

krawutzi commented 4 years ago

You mentioned your principles:

🚧 Clear separation of concerns, 📦 Modularity, ✅ Testability, 🧩 Highly polymorphic, 🧮 Mathematical background

You showed their importance and why you chose those principles. Thank you so much.

The documentation even explains those principles precisely, but you forgot to showcase testability.

Could you add examples of testability?

truizlop commented 4 years ago

Hi @krawutzi, everything you build using Bow Arch is a pure function, so you only have to provide inputs and assert on outputs. Said that, it is not easy some times. We still need to work on providing some utilities to ease testing some artifacts (like dispatchers) and to enhance end-to-end testing. Once we do it, we will add the companion documentation. If you want to help us move that forward, I'm more than happy to guide you along the process. Thanks!