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

Set up testing framework for Characters #54

Closed
2 of 3 tasks
james7132 opened this issue Dec 6, 2016 · 1 comment
Closed
2 of 3 tasks

Set up testing framework for Characters #54

james7132 opened this issue Dec 6, 2016 · 1 comment

Comments

@james7132
Copy link
Member

james7132 commented Dec 6, 2016

There are a few interesting challenges presented by the character controller

All of the elements need to be networked. For simplicity this means using NetworkBehaviors, which introduces two large, unmockable dependencies: the network and Unity3D as a whole. This likely will make testing Characters at a unit test level incredibly difficult (requiring reflection to force Start, Update, etc. calls in the same order as Unity's) or downright impossible. Thus the focus of these are to create comprehensive integration tests.

Mocking common game elements:

  • Input Mocking - This shouldn't be too difficult as the character controllers don't directly depend on Unity's input system.
  • Match Mocking - Mocking the match system, this generally shouldn't be needed, since characters shouldn't have a dependency on match data, but
    More will be added as they are found.

Character Testing Fixture:

  • Setup and tear down local game server.

Will update as new issues are found.

@james7132
Copy link
Member Author

This is more or less done via the CharacterStateControllerBuilder tests. Closing issue.

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

No branches or pull requests

1 participant