| CARVIEW |
reflex-test-host: reflex host methods for testing without external events
Please see the README on GitHub at https://github.com/pdlla/reflex-test-host#readme
[Skip to Readme]
Downloads
- reflex-test-host-0.1.2.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.2.1, 0.1.2.2, 0.1.2.3 |
|---|---|
| Change log | ChangeLog.md |
| Dependencies | base (>=4.7 && <5), dependent-sum, lens, mtl, primitive, ref-tf, reflex (>=0.7 && <0.10), these, transformers [details] |
| Tested with | ghc ==9.6.2 |
| License | BSD-3-Clause |
| Copyright | 2020 Peter Lu |
| Author | pdlla |
| Maintainer | chippermonky@gmail.com |
| Uploaded | by minimaple at 2023-11-25T19:04:35Z |
| Category | FRP, Reflex |
| Home page | https://github.com/pdlla/reflex-test-host#readme |
| Bug tracker | https://github.com/pdlla/reflex-test-host/issues |
| Source repo | head: git clone https://github.com/pdlla/reflex-test-host |
| Distributions | NixOS:0.1.2.3 |
| Reverse Dependencies | 4 direct, 0 indirect [details] |
| Downloads | 1029 total (24 in the last 30 days) |
| Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2023-11-25 [all 1 reports] |
Readme for reflex-test-host-0.1.2.3
[back to package description]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.