googleforgames / agones

Dedicated Game Server Hosting and Scaling for Multiplayer Games on Kubernetes
https://agones.dev
Apache License 2.0
6.09k stars 812 forks source link

sdks/cpp needs unit tests #905

Open devjgm opened 5 years ago

devjgm commented 5 years ago

Is your feature request related to a problem? Please describe.

The C++ code in sdks/cpp/ doesn't have any unit tests, so there's no way to verify that an of it works. This makes it difficult for anyone to contributed a change/fix to the code base, because there's no way to prove that the code works (before or) after the change.

Describe the solution you'd like

All the C++ files in sdks/cpp should have a foo_test.cc that corresponds to foo.h and foo.cc. The unit tests should be implemented using Google Test (https://github.com/google/googletest)

Describe alternatives you've considered

None. There's no alternative to unit tests :-)

Additional context

There are other unit testing frameworks, but I believe Google Test is by far the most common for C++, and it's the one required for Google C++ code.

markmandel commented 5 years ago

Yes please! We definitely need someone with C++ experience to write this 👍

github-actions[bot] commented 1 year ago

'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '

markmandel commented 1 year ago

We should probably do this at some point.

github-actions[bot] commented 1 year ago

'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '

markmandel commented 1 year ago

Adding awainting-maintainer label, since we really should do this.

miledxz commented 9 months ago

Heey @markmandel, would be good idea to add required tests, I can do something about that, if u think that's okey u can assign me

markmandel commented 9 months ago

@zedGGs please go for it! Consider yourself assigned. Let us know if you have any questions here about the framework in place for SDKs, or in #development on Slack!

miledxz commented 9 months ago

@markmandel awesome stuff ! thanks, sure, Im gonna add pr !