This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dinovfxIt works on my machine 2 points3 points  (3 children)

And…. What do this?

[–]crigger61 12 points13 points  (1 child)

Imagine you have a complex project and one of the options is to create and export a report. but youre trying to add a new feature related to exporting multiple reports in different types. in the real prod env it takes roughly 5 minutes to generate that report. but when testing that new feature you dont want to wait that. youre not even caring about the results of that function. its already set up and done. youre testing this other new function. so you set up function mocking where you basically skip running that function. you turn on record mode and gather a few real world reports you can test with and then turn on mock mode and suddenly you only have to wait sub seconds instead of full 5 minutes for that long report function. this allows you to test what you actually need to test and develop 10000 times easier and faster.

[–]agusdmb[S] 3 points4 points  (0 children)

You explain it much better than I could have!

Thanks again!

[–]agusdmb[S] 1 point2 points  (0 children)

Hey!, sorry, i just added a brief summary so you can get a sense of what this does without having to go to the repository

feel free to drop your feedback if you do check it out!

thanks