Unit Testing Framework for n8n: Preview from the Prague Meetup (Sept 2024)

In this talk from the n8n Meetup in Prague, n8n Ambassador @liam shares an early preview of the unit testing framework he’s been developing for n8n.

(We had some problems with recording the audio, so you’ll notice some difference in quality throughout the video)

Links:

5 Likes

This is impressive! Very well done @liam. I definitely have to check it out.

Pretty sure you have it on your list of ideas already - I think it would be great to have additionally to the mail notifications an overview of passed/failed tests within the UI, which would allow to quickly jump to the affected nodes.

2 Likes

Thank you!

The idea I have for that is to have GitHub style checkbox at the top that Is a drop-down to a summary of the last test runs

So it will be a red x if there are fails with a fraction showing how many tests passed to how many there are

Is that kinda what you mean?

Yes, sounds great. So I believe this dropdown would contain a list including specific error messages and the user could maybe even click on them to jump to the affected node.

Yes something like that. Also, something on the node would be cool to have showing that it has failed the last time it ran

Those two things are not really a priority for me right now though. I will be focusing on just getting it production ready so that I can start using it

1 Like

That’s an awesome feature! Congratulations, @liam !
Thank you for contributing to the project and the community :pray:

2 Likes

Hi @liam – I hope you’re doing great!

Is there any progress related to your unit testing framework? The guy from the front row is still interested :slight_smile:

All the best, and thanks for your work!
Honza

2 Likes

Hey @honzapav!

n8n completely rebuilt the canvas from scratch, which is where all of my code changes were.

It shouldn’t be too bad to migrate but I am waiting for it to be stable before starting.

I will come back to this thread and give a heads up when it’s working, but i don’t expect that to be until at least until q3-q4 this year unfortunately

2 Likes