packages feed

reflex-test-host 0.1.2.0 → 0.1.2.1

raw patch · 3 files changed

+5/−5 lines, 3 files

Files

ChangeLog.md view
@@ -1,6 +1,6 @@ # Changelog for reflex-test-host -## 0.1.2.0+## 0.1.2.1 - added `Reflex.Test.Monad.Host`  ## 0.1.1.0
README.md view
@@ -1,9 +1,9 @@ # 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/App.hs` for basic usage example. You can find more usage examples in [this project](https://github.com/pdlla/reflex-potatoes?files=1) and [this one](https://github.com/pdlla/reflex-todo-undo-mvc-model).+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](https://github.com/pdlla/reflex-potatoes?files=1) and [this one](https://github.com/pdlla/reflex-todo-undo-mvc-model).  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`. -This library is modified from `test/Test/Run.hs` in the [reflex main repository](https://github.com/reflex-frp/reflex). I'll deprecate this module if the functionality is ever moved into an exposed module which [I think it should be](https://github.com/reflex-frp/reflex/issues/412).+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.
reflex-test-host.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 17e1fcd46f7b753b5168f295d2feefbd6f430a25c8ba76ed9af2335ee1bfaff3+-- hash: c8330b005ad3694b1afc1a8c8db7913c2eff641ff20d06850e0714812c0eb804  name:           reflex-test-host-version:        0.1.2.0+version:        0.1.2.1 synopsis:       reflex host methods for testing without external events description:    Please see the README on GitHub at <https://github.com/pdlla/reflex-test-host#readme> category:       FRP, Reflex