screeps icon indicating copy to clipboard operation
screeps copied to clipboard

Change test server harness from CLI interface to mod

Open sparr opened this issue 8 years ago • 1 comments

utils/test-private-server.sh and utils/check_private_server.js are very hacky. It might streamline the process, and make it more failure-proof, if we implement the launching and population of the server as a mod instead of a series of CLI commands. That mod could then produce log output to indicate success or failure of the conditions we're checking for, and the script to check would just have to check that log.

sparr avatar Oct 04 '17 19:10 sparr

I was thinking about extracting the private server test suite as package, so that it can be used by others. Having some kind of test class which defines the room with structures and methods in specific ticks which can check the database. A part of it could be a server mod for easier communication. I also played a bit with lokijs to get direct access to the database. But I'm thinking about using the mongo bot for our setup. So database independent would be better.

TooAngel avatar Oct 04 '17 19:10 TooAngel