mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
added reference and link to node-red-node-test-helper repository
parent
b360f47540
commit
4855b22fec
@ -47,11 +47,11 @@ Test scripts for UI testing are in `test/editor` directory.
|
||||
|
||||
|
||||
***
|
||||
# Helper node
|
||||
# Node Test Helper
|
||||
|
||||
## Helper node for Runtime and nodes
|
||||
There is a helper script for testing a node `test/nodes/helper.js`. When testing a node, it is recommended to use this script.
|
||||
Helper script can start Node-RED server, load a flow, and receive a payload from the previous node, etc.
|
||||
In the core, there is a helper script for testing a node `test/nodes/helper.js`. This has also been made available in a separate module at https://github.com/node-red/node-red-node-test-helper for node contributors to make use of. This module will serve as a node test framework with associated documentation that we aim to improve over time.
|
||||
|
||||
When testing a node, it is recommended to use this script. The test-helper can start Node-RED server, load a flow, and receive a payload from the previous node, etc.
|
||||
|
||||
### Starting a server
|
||||
`helper.startServer` starts a Node-RED server. To start a Node-RED server on each test case:
|
||||
|
Loading…
Reference in New Issue
Block a user