@gregoriusrippenstein/erlang-red-unittest 0.9.3

Unit testing nodes for Erlang-RED.

npm install @gregoriusrippenstein/erlang-red-unittest

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

Node Info

Version: 0.9.3
Updated 3 days ago
License: Don't do evil.
Rating: not yet rated

Categories

Actions

Rate:

Downloads

123 in the last week

Nodes

  • ut-assert-failure
  • ut-assert-values
  • ut-assert-success
  • ut-assert-status
  • ut-assert-debug

Keywords

  • node-red
  • erlang-red
  • unit-testing
  • assert-the-truth

Maintainers