I’m working on the ‘mytimeout’ node (a countdown node) and I’m trying to add testing. I have three things to bring up
1) I want to add testing to my node. So I went to the node-red create your first Node (unit testing). I think the unit testing section needs to be updated as the package name has changed and the node-red-node-test-helper github page is quite different.
2) Now following the instructions on the github page I’ve run into a problem. I need to start the new node-red server on a different port as I already have a node-red server running on the default port. So how do I run the test on a different port number?
3) I have a node with 2 outputs. I’m not quite sure how to add the second output for testing. Since I can’t get the previous item resolved I’m not in a rush to get to thing but eventually I’ll need to figure this part out also.
I’ll have further questions later. Right now getting something working is the first step, then pass a few simple tests then I’ll get to the complex tests.
Thanks