# How to test flows and subflows

**URL:** <https://discourse.nodered.org/t/how-to-test-flows-and-subflows/78545>\
**Category:** General\
**Tags:** node-red-node-test-helper\
**Created:** [19 May 2023 14:44 UTC](https://discourse.nodered.org/t/how-to-test-flows-and-subflows/78545 "2023-05-19T14:44:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mradvanyi](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mradvanyi](https://discourse.nodered.org/u/mradvanyi)\
**Post date:** [19 May 2023 14:44 UTC](https://discourse.nodered.org/t/how-to-test-flows-and-subflows/78545/1 "2023-05-19T14:44:35Z")

</div>

I would like to unit test my Node-RED implementation, specifically **Flows** and the **Subflows** in the flows.

I'm looking for a non-UI-based Junit test stile testing system, which I can automate.

I already tested [node-red-node-test-helper](https://github.com/node-red/node-red-node-test-helper). I was able to test some of subflows after I converted them to nodes with [node-red-contrib-nodegen](https://flows.nodered.org/node/node-red-contrib-nodegen).  
I'm not sure node-red-node-test-helper is the best tool to test flows.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 July 2023 14:45 UTC](https://discourse.nodered.org/t/how-to-test-flows-and-subflows/78545/2 "2023-07-18T14:45:05Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
