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

Write tests #583

Open
AJenbo opened this issue Feb 8, 2020 · 1 comment
Open

Write tests #583

AJenbo opened this issue Feb 8, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@AJenbo
Copy link
Member

AJenbo commented Feb 8, 2020

We would like to fully tests the code. This would make it safer refactor parts of the code as well as potentially find more bugs in the original game.

We have already setup a test suite using Google Test and reporting code coverage via Codecov. So all that is left to do is write more test cases in the SourceT folder to steadily increase the code coverage :)

Have fun and feel free to ask questions.

P.s. here are som inspirational articles:
https://www.gamasutra.com/blogs/FrancoisGuibert/20170612/299785/Unit_testing_in_video_games.php
http://gamesfromwithin.com/stepping-through-the-looking-glass-test-driven-game-development-part-1

@AJenbo AJenbo added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Feb 8, 2020
@mewmew
Copy link
Contributor

mewmew commented Feb 15, 2020

There is a testgen branch of Devilution which generates golden output for the Cathedral dungeon generation algorithm (in other words, the expected output of these algorithms as produced by the original game). See diasurgical/devilution#1801 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants