You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it possible to have some infrastructure for testing?
specifically, i would like to test behaviors in the database.
example testcase:
restore database from the repository,
run this sql to add a player, a ship, a move command, and run several ticks of simulation.
verify that the ship has reached its destination.
there are a lot of edge cases that would be nice to test regularly, such as multiple ships trading with one planet at once, or several ships transferring goods to one ship simultaneously, etc..
The text was updated successfully, but these errors were encountered:
We can use the dev (docker-based) infrastructure for that. To ensure atomicity (clean db for each run) we just need to remove the previous container (from the previous run - it keeps the data).
For the tests we may use the SQL cli or a Python script. When we have that we can create a CI for that.
is it possible to have some infrastructure for testing?
specifically, i would like to test behaviors in the database.
example testcase:
restore database from the repository,
run this sql to add a player, a ship, a move command, and run several ticks of simulation.
verify that the ship has reached its destination.
there are a lot of edge cases that would be nice to test regularly, such as multiple ships trading with one planet at once, or several ships transferring goods to one ship simultaneously, etc..
The text was updated successfully, but these errors were encountered: