Xonotic Forums
any unit testing? - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12)
+--- Thread: any unit testing? (/showthread.php?tid=4711)

any unit testing? - soukaina - 01-12-2014

I missed this forum!
I used to play xonotic abt 1 year ago I also played a bit with the code and the maps just to see how it works.
Now I m doing a little research on how tests/dev is done in real projects. I have relatively a clear idea abt business softwares but I am wondering how unit testing is applied to games.
Is there any unit tests in Xonotic source code?
(I don't find any maybe because I have an old version)
I would like to see how it looks.

Thank you very much that would help me a lot.

RE: any unit testing? - Mr. Bougo - 01-12-2014

We don't have any sort of test suite. We test by hand and sometimes benchmarks.

As a result, we sometimes miss bugs.

RE: any unit testing? - soukaina - 01-12-2014

Thanks Mr. Bougo! nice to hear from you after more than a year.
Any willing to change that? Or it is not a priority?

RE: any unit testing? - Mr. Bougo - 01-12-2014

I think any sort of testing framework requires coding discipline that we don't currently have Wink

However, I can see it being useful for smaller components like q3map2 or gmqcc, and the latter already has testing!