From 4855b22fec0887ef532b76d6d8e8f325f872b2d9 Mon Sep 17 00:00:00 2001 From: Mike Blackstock Date: Wed, 21 Feb 2018 09:12:43 -0800 Subject: [PATCH] added reference and link to node-red-node-test-helper repository --- Testing.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Testing.md b/Testing.md index 76f6894..9a5b7df 100644 --- a/Testing.md +++ b/Testing.md @@ -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: