# Unit testing nodes that connect to remote hosts

**URL:** <https://discourse.nodered.org/t/unit-testing-nodes-that-connect-to-remote-hosts/74969>\
**Category:** General\
**Created:** [10 February 2023 00:36 UTC](https://discourse.nodered.org/t/unit-testing-nodes-that-connect-to-remote-hosts/74969 "2023-02-10T00:36:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudest](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dudest/32/72328_2.png) [@dudest](https://discourse.nodered.org/u/dudest)\
**Post date:** [10 February 2023 00:36 UTC](https://discourse.nodered.org/t/unit-testing-nodes-that-connect-to-remote-hosts/74969/1 "2023-02-10T00:36:14Z")

</div>

Greetings all,

I'm interested to know you're approach to unit testing nodes that connect to remote hosts.  
Do you emulate them with tcp in/out nodes? do you omit unit testing altogether and test manually? Please share 🙂

Best regards,  
Alex

---

<div class="post-metadata">

**Author:** ![mudwalker](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mudwalker](https://discourse.nodered.org/u/mudwalker)\
**Post date:** [10 February 2023 11:55 UTC](https://discourse.nodered.org/t/unit-testing-nodes-that-connect-to-remote-hosts/74969/2 "2023-02-10T11:55:29Z")

</div>

I have moved this to General Category from Creating Nodes. It will be better served there.

---

<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:** [11 April 2023 11:56 UTC](https://discourse.nodered.org/t/unit-testing-nodes-that-connect-to-remote-hosts/74969/3 "2023-04-11T11:56:21Z")

</div>

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