开发者

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜