Lua Unit Test Framework

Lua Unit Test Framework

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10383
Joined: 24 Jan 2006, 21:12

Lua Unit Test Framework

Post by PicassoCT »

So, i once again seem to have broken something in my game, that is hard to diagnose (even with git history bisect).
I google a little for lua unit test frameworks and cam upon this:
https://github.com/bluebird75/luaunit

Does anybody else use this in his/her projects for complex gadgetry or have any unittest experience.
This is obviously something you dont wanna ship with the final game, and only need to run once at gamestart.
Anyone any experience integrating something similar for lua scripts?
I originally planted to write something similar for Unit-Unit Testing but it got nowhere..
gajop
Moderator
Posts: 3047
Joined: 05 Aug 2009, 20:42

Re: Lua Unit Test Framework

Post by gajop »

I use it in SB's util module:

https://github.com/gajop/spring-lua-uti ... #L145-L175
https://github.com/gajop/spring-lua-uti ... #L160-L344

etc.

I don't use it with gadgets.
I find it mostly useful when developing basic modules, but it doesn't solve the big issues which would require some sort of system/e2e testing.
Post Reply

Return to “Lua Scripts”

cron