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

Unit Test Coverage #196

Open
paddatrapper opened this issue Dec 26, 2014 · 7 comments
Open

Unit Test Coverage #196

paddatrapper opened this issue Dec 26, 2014 · 7 comments

Comments

@paddatrapper
Copy link
Contributor

Tests should cover the majority of the code base. Thus code coverage should be over 80%. Currently it is sitting at 25%

@paddatrapper paddatrapper added this to the alpha version milestone Dec 26, 2014
@verhagen verhagen changed the title Unit Test converage Unit Test Coverage Dec 27, 2014
@nicce
Copy link

nicce commented Nov 12, 2018

I'll happily take a look at this one. Not sure if a percentage limit is what to aim after. However I add test cases to where I see fit, and then you can tell me if you think I have missed something.

@paddatrapper
Copy link
Contributor Author

Yeah, I agree with you. Thanks for looking into this!

@Ronan-H
Copy link

Ronan-H commented Mar 15, 2019

Should the classes in com.jadventure.game.menus be unit tested? I see there are currently no unit tests at all for those classes.

@paddatrapper
Copy link
Contributor Author

Ideally yes, but I can't remember if there was an issue with it or if it just hasn't happened yet

@Ronan-H
Copy link

Ronan-H commented May 25, 2019

@paddatrapper Having a look right now. What would be the best way to test input/output to the menus? I see CommandCollectionTest uses System.setOut to test the output. Would it be OK to use System.setIn and System.setOut, and call QueueProvider.startMessenger(GameModeType.STAND_ALONE) to test the menus?

@paddatrapper
Copy link
Contributor Author

@Ronan-H yeah that is probably the best way to do it. You may be able to tie into the QueueProvider, but it may well not be possible.

@Ronan-H
Copy link

Ronan-H commented May 27, 2019

Opened an issue about a rework idea for QueueProvider in #258 to make testing easier.

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

No branches or pull requests

3 participants