Triplea: Compatibility Testing: Document and Automate

Created on 22 May 2017  路  6Comments  路  Source: triplea-game/triplea

Need to document the following and determine if we can create automated tests:

To check game compatibility, there are two things to check:

save games: save with new game, load from file with old and vice versa
network:
A) host a local network game with latest, then rebased to a different commit, launch a second instance and connect locally. Progress far enough to fight a battle.
B) with latest version, connect to lobby, play a game in a bot until you get to combat

Tasks

  • [x] Document
  • [ ] Automate tests
Discussion

All 6 comments

Good idea!
I believe it could become problematic if no lobby bots available, maybe we need another solution for that.

@RoiEXLab Can a dev just run the lobby and a bot locally to achieve the test goals so we are not reliant on what's available in production?

I've been following what you've been doing with the lobby scripts in triplea-game/lobby#27. Is there a simpler procedure to run a lobby and bot locally? If not, such a test/staging lobby might be another candidate for a Docker image.

There are launchers for lobby + bot in eclipse/launchers FWIW. Though there are also a few updates needed to get lobby running. A copy of the same version of derby.jar that lobby is running, and also the jdbc loader needs to be invoked.. I'm actively working to make this area better, have not fully decided whether to improve current set up or focus on new that will replace derby and may potentially alter how we launch lobby + DB.

@ssoloff FWIW, some details on what needs to be done to have the lobby run and connect to derby: https://gist.github.com/DanVanAtta/72947202bd4dca0eeb586e5e16c510e4

@ssoloff Using start-stop-daemon you should be able to launch a "local lobby" server process in the background so you can try connecting to it.
The lobby scripts are using systemd which is more suited for permanent installations, not for testing, but you can of course still use the run_lobby scripts etc.

The documentation portion of this issue has been addressed by triplea-game/triplea-game.github.io#188.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FrostionAAA picture FrostionAAA  路  7Comments

DanVanAtta picture DanVanAtta  路  6Comments

panther2 picture panther2  路  6Comments

General-Dru-Zod picture General-Dru-Zod  路  5Comments

Khobai picture Khobai  路  9Comments