Workflow integration testing

Describe the problem/error/question

Hello,

I searched for an answer to this on the forum but didn’t find any good solution.

We are using workflows that calls different APIs that we don’t have control on.
As we want to be able to handle all possible scenarios depending on the response of these APIs, these workflows can become pretty complex and with many different paths.

Our goal is to find a way to implement “integration tests”, so that before doing a change, we can easily simulate all different cases and verify that nothing broke.
We can currently pin results of API calls, but not multiple at once (success, error 1, error 2…).

Is it something that can already be done (if so how?), or would this be possible to create a feature request?

Let me know if you need any more information or if I am not clear.

Thanks in advance,

N8n information:
n8n version: 1.45.2
database: PostgreSQL 14
EXECUTIONS_MODE queue
Running n8n via: Docker k8s
Operating System: Amazon Linux EKS 1.28.5-20240227

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @HaroldCarrelBilliard,

Unfortunately, this not possible at the moment through pinned data, although it would be a great feature request! :raised_hands:

I’d say the best way to achieve this right now would be to duplicate the node after testing it and pinning the tested data and using the whole node the same way you would use the pinned data. You can even deactivate it and add sticky notes for for a visual queue.

Something like this, for example:

1 Like

Thank you for your answer!
That something I thought of, but indeed that’s not an ideal solution for our use case.

Could we create a feature flag to see if that would be a wanted feature?

Thanks in advance,

Yes, of course!
I’ve moved this to the Feature Request Category - don’t forget to vote :slight_smile: - and I’ll make an internal note so we can assess how much effort this would take us

1 Like

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