JonasJurczok / faketorio

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

add sleep() command #79

Open danielbrauer opened 5 years ago

danielbrauer commented 5 years ago

Is there a way to wait one or more frames during a test? It would be nice to be able to handle interactions over time in order to avoid faking everything.

JonasJurczok commented 5 years ago

Not yet. I want to do that but this requires some more work on how tests are integrated with factorio.

The problem is that the only way to reliably wait in factorio is counting ticks. As there is no real sleep command it is kind of hard to not busy wait, which I would like to avoid.