Series 01 Episode 05 🚀 n8n Knowledge for Beginners 🚀

Illustration of an n8n workflow with pinned test data on the first node

You've built a workflow with a few nodes. You click “Execute workflow”, and every time the trigger fetches the data all over again or sends a real email. How do you test without breaking anything or waiting around?

Four tools that make testing faster:

  1. Execute step: runs only the selected node on the data from the previous step. You change one field and see the result right away, without running the whole workflow.
  2. Pin data: pins a node's output (the pin icon in the OUTPUT panel). Further tests use the pinned data instead of calling the trigger or the API again. Perfect for a Webhook you had to call from outside once.
  3. Editing pinned data: you can change the sample by hand, e.g. insert an empty email, and check how the workflow handles an ugly case.
  4. Executions: the tab with your run history. You see what data went through each node and where the error appeared.

Watch out for:

  • Pinned data only works in manual tests. An active workflow pulls real data, so a good test result is no guarantee in production.
  • A forgotten pin: you change the data source, but the test still shows the old data. After a change, unpin the data and fetch it again.
  • Execute step on a node that sends a message will really send it. Test with your own address.

Rule of thumb: pin the data and build the logic first, and run actions with side effects last, on test data.

Upcoming meetups and workshops are listed in the Events section.

← Back to the knowledge baseShare on LinkedIn (opens in a new tab)