Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests #17

Open
JacobFischer opened this issue Apr 13, 2017 · 0 comments
Open

Add unit tests #17

JacobFischer opened this issue Apr 13, 2017 · 0 comments

Comments

@JacobFischer
Copy link
Member

Much of the base framework has matured to the point it should be unit tested.

Here's a vague list of things that would be possible to test:

  • Networking I/O
  • RESTful API
  • Delta parsing/creation
  • Matured games like Chess

I think it would be unwise to unit test in development games, as they are evolving so fast we don't necessarily know what to test. However, a known game like Chess could be tested by sending pre-determined moves and ensuring that the game state changes in expected ways.

Unit testing the game server would be tricky as it's only half of the problem. There's also a client you have to connect to do much of anything, and if that is broke the unit tests could break, claiming the game server is wrong.

So, someone should investigate how easy testing is to add, and if it even works reliably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant