Lua unit tests for Android code
I have a question. Can I develop some unit tests in Lua in order to test an Android applica开发者_JS百科tion or does Lua unit testing only apply to Lua code? If yes, how?
Thanks!
Lua unit testing only applies to Lua code.
However, you can still do Lua unit tests if you develop your android application in Lua.
You could, for example, use the corona SDK to do that.
Another (more difficult, less expensive) way to do that would be to use Lua directly from Java, for example with luajava, luaj, kahlua or mochalua. In that case, you would be able to test the Lua parts with Lua unit tests, but you would have to use something else for the Java part (something like JUnit)
精彩评论