The benefits of this are:
Marc and lasse, what do you think? Should Felipe continue this?
@davelab6 @m4rc1e and @graphicore I'd like to mention here that I am putting this effort because I think this will make my work easier. The lack of structure in this giant script has been a pain for a while already. I think the refactoring suggested here (45% of which was already implemented today and probably the rest to be done on my next work day) will have a positive impact not only on the overall code readability, but also in its reliability.
I agree with Felipe here.
I used a similar approach for my glyphsapp QA scripts. Many tests rely on other tests to work properly. By having every test as a function, we'll cut down on the duplication.
Cheers,
Marc
Cool! I'll move on and finish this today. Thanks, @m4rc1e and @graphicore
Thanks both