Testharness/Toolset

Tools which are useful for mod development.
User avatar
Yokmp
Inserter
Inserter
Posts: 33
Joined: Tue Aug 23, 2016 10:30 am
Contact:

Testharness/Toolset

Post by Yokmp »

I've build a testharness/toolset for Facorio and you can get it here:
https://github.com/Yokmp/factorio_toolset

There are various scripts (python 3.6) which let you start factorio in different configurations and mod combinations.
It helps you check on generated code in data stage and also ingame on a loaded save via control.lua.
The added test-code in your mod can be excluded with special tags (--#region debug) so no test code will be deployed if you use the deploy script.
There are many other things you can do, just check out the docs.
If you use a coding agent then just let it read the .MD files and it will understand how to use it. You the can then just run the ui.py script or direcly from your console as all scripts can be used directly from the cmd line.

(if you let an agent runn the tests make shure he uses the --no-color argument because colored output can be hard to read for it)
Post Reply

Return to “Development tools”