I see that EE 2.x is shipped with CodeIgniter’s unit testing class (CI_Unit_test). I was wondering if anyone have experience in using this to test EE addons.
It does not seem to be used anywhere right now, atleast not in the source that is distributed.
How would you use it? I’m thinking maybe having a seperate page in the modules’ control panel which run unit tests. That should be pretty simple; but what could one unit test there? I guess the mcp.file is already loaded, so those functions could be tested - but how about the mod.file itself and maybe the ext.file (extension) as well. I’m just thinking out loud here, I was just wondering if anyone has some input on this