简体   繁体   中英

Lua unit tests for Android code

I have a question. Can I develop some unit tests in Lua in order to test an Android application 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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM