plainblack / Lacuna-Server-Open

The open source Lacuna Server repository.
36 stars 29 forks source link

Test empires. #418

Open icydee opened 8 years ago

icydee commented 8 years ago

It would be very useful to have an API where we could create a test empire, perhaps on the Reboot code in a different sector. These empires would be pre-populated with a range of colonies, buildings, stations etc. in a 'standard' format. This would allow for better automated testing.

These would be set up like a database 'fixture' in a sector isolated from the rest of the game. In fact the whole sector could be set up with a small number of stars, empires, colonies etc. and the whole sector data could be deleted either via another API call or after a set period (say an hour).

It's optional as to whether or not we allow this in the production environment.

We might want to reserve some empire names so they can be used for test empires.

Imzogelmo commented 8 years ago

Seems like a great idea for testing. Shouldn't have to actually go through all the steps when the point is to test specific features.