reflex-test-host alternatives and similar packages
Based on the "reflex" category.
Alternatively, view reflex-test-host alternatives based on common mentions on social networks and blogs.
-
reflex
Interactive programs without callbacks or side-effects. Functional Reactive Programming (FRP) uses composable events and time-varying values to describe interactive systems as pure functions. Just like other pure functional code, functional reactive code is easier to get right on the first try, maintain, and reuse. -
reflex-dom
Web applications without callbacks or side-effects. Reflex-DOM brings the power of functional reactive programming (FRP) to the web. Build HTML and other Document Object Model (DOM) data with a pure functional interface.
CodeRabbit: AI Code Reviews for Developers
Do you think we are missing an alternative of reflex-test-host or a related project?
README
reflex-test-host
This library contains functionality for writing unit tests for the "model" portion of your reflex-frp apps. Please see "test/Reflex/Test/SimpleHostSpec.hs" for basic usage example. You can find more usage examples in this project and this one.
Note that TriggerEvent
class constraint is not supported. It could be added with some effort but breaks the "pureness" of the test (at least from its inputs) so I don't suggest it. You can still test parts of your network that don't require TriggerEvent
.
There is also a monadic testing module in this library. You can see usage examples in "test/Reflex/Test/Monad/HostSpec.hs".
PRs are welcome. Perhaps you have some ideas to make the interface more useable.