reflex-test-host: reflex host methods for testing without external events

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Please see the README on GitHub at https://github.com/pdlla/reflex-test-host#readme


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.1.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, ref-tf, reflex, these [details]
License BSD-3-Clause
Copyright 2020 Peter Lu
Author pdlla
Maintainer chippermonky@gmail.com
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
Uploaded by pdlla at 2020-05-22T17:11:31Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for reflex-test-host-0.1.1.0

[back to package description]

reflex-test-app

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 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.

This library is modified from test/Test/Run.hs in the reflex main repository. I'll deprecate this module if the functionality is ever moved into an exposed module which I think it should be.

PRs are welcome. Perhaps you have some ideas to make the interface more useable.