Open terite opened 6 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.
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
factorio.run()
on the first tickerror(...)
after all specs have run to stop (crash) the server--start-server
instead of--load-game
server-settings.json
that does things like disabling matchmaking and auto-pauseThe 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