Skip to content

Add unit tests #17

@JacobFischer

Description

@JacobFischer

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions