UnitTesting for Lua Scripts written against Command
Posted: Fri May 29, 2020 12:12 pm
OK, I am a developer/software engineer by trade. When I write professionally, I am interested in making sure that my code is correct and runs error-free. To this end, I employ unit testing, and regression testing and do so automatically, every time I submit changes. This ensures that the codebase remains error-free, or at least if I interject bugs, they are detected right away.
This said, as I write scripts against the Command's Lua objects for running in my scenarios, I am VERY interested in unit testing my functions to prove they are correct before tying them to my scenarios. To this end, I have several questions:
1. Is there a UnitTest library/Framework that is in use by the community that works well against Command's Lua API?
2. Is it employed to allow automated testing of code?
3. How is #2 accomplished/setup?
I would love a discussion on various tools, and the merits and methods used to employ them.
This said, as I write scripts against the Command's Lua objects for running in my scenarios, I am VERY interested in unit testing my functions to prove they are correct before tying them to my scenarios. To this end, I have several questions:
1. Is there a UnitTest library/Framework that is in use by the community that works well against Command's Lua API?
2. Is it employed to allow automated testing of code?
3. How is #2 accomplished/setup?
I would love a discussion on various tools, and the merits and methods used to employ them.