@gregoriusrippenstein/erlang-red-unittest 0.9.3
Unit testing nodes for Erlang-RED.
Unit testing nodes for Erlang-RED
Node-RED Nodes for testing flow correctness in the Erlang-RED project.
These could be thought of the first Erlang-RED-first nodes! They provided limited functionality within Node-RED as they deal with testing of node functionality and nodes are assumed to work in Node-RED.
Assert Nodes
There are five assert nodes defined to:
- test whether a message contains the correct values (assert-values),
- whether a msg object arrived (assert-success),
- whether msg object was not received (assert-failure),
- whether a node generated a status message (assert-status), and
- whether a node generated a debug message (assert-debug)
Only the first three are partly implemented in Node-RED/NodeJS.
Their server-side implementations in Erlang-RED:
Admittedly the assert status node can be replaced by using a status node followed by an assert true node. These nodes provided the basis for the Erlang-RED project and therefore existed before any other nodes - hence the duplicity.
These nodes have been published because the Erlang-RED flow testsuite utilises them.
Artifacts
- NPMjs Package
- Node-RED node package
- GitHub Repo
- Node-RED flow that maintains this codebase.