JonasJurczok / faketorio

Run automatic tests for your mod inside Factorio
MIT License
17 stars 4 forks source link

Run factorio in headless server mode #47

Open terite opened 6 years ago

terite commented 6 years ago

For CI systems like travis it's difficult to get the full client for a couple reasons

It would be nice if there was a way to run tests against the headless server. I got this working locally by doing the following

The only major issue with this approach is that it's not possible to get a player in game. This means no GUI testing, or testing of anything that relies on a player.

The benefits are pretty nice however

JonasJurczok commented 5 years ago

Hey, sorry i somehow missed this.

I like the idea but also getting the server to work automatically is not that easy necessarily.

And it removes a huge part of the use case of faketorio, which is UI testing for mods :)

According to devs in the forum it's not possible to start the client headless and never will be as they don't see a reason to implement that.

So.. right now I'm not sure what the benefit is of supporting this. But I'll think about it.