Jump to content

Recommended Posts

Posted (edited)

Hi Guys,

 

While working on my Skynet IADS Script, I came to the point where I wanted unit tests to make sure I did not break parts of my existing code while adding new features.

 

I adapted LuaUnit to work with DCS, you can view the code and a demo mission here:

https://github.com/walder/Skynet-IADS/tree/master/unit-tests

I did not write a unit test for my changes :helpsmilie:. basically I rewrote the terminal output to env.info()

 

It writes the output to the dcs.log file located at:

\Users\Your Home Directory\Saved Games\DCS\Logs\dcs.log

 

You can use a simple log viewer like https://www.baremetalsoft.com/baretail/ to inspect the output.

 

Learn more about LuaUnit:

https://luaunit.readthedocs.io/en/latest/

https://github.com/bluebird75/luaunit

Edited by tigair
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...