Unit tests - Adding *variable* parameters ?

Hey!

I started playing around with the unit tests feature and first of all - I LOVE it! In bubble I would test everything manually

One thing though, many of my apis receive a user id input and have conditions regarding all sorts of user states

This means that if I want to create a separate test per condition outcome I need to save users with the specific state for the condition

For example let’s say I have a conditon based on whether the user was active today or not. If I wan to test both options of this condition I will need to always have one test user which was active today and another test user which was not

So my thought about it was - why not have an option to add to the test parameters directly the variables that are being created in the function stack? That would enable me to play directly with the conditions without having to maintain “test user” with all sorts of different states just for testing

Does that makes sense?

Thanks!!

2
5 replies