I'm new to Gideros and Lua so apologies if this is answered elsewhere despite my searches. I'm using Busted to test my new Gideros application. Busted works fine unless I'm trying to test a module that in some way requires Core, i.e. Core.class(), in which case I get the error "module 'Core' not found". Core is implicit in Gideros's build and I haven't found a way to require 'Core'. In the ZeroBrane Debugger I notice a file called property.lua that is apparently where Core lives but I can't find property.lua anywhere in the Gideros libraries.
I've worked around this by writing my own TCore.class() function that's compatible with Core.class() but am wondering if others have either worked around this or know how to require Core in a busted test.
Thank you in advance.
-Troy, aka Gideros/Lua Newby
Comments
Thanks.
I'm still pretty green with Lua and Gideros. I've installed Busted via luarocks, but I don't know how to make the Gideros runtime aware of it. I think I'm missing a few pieces.
Good luck.
https://gist.github.com/troysandal/6678407