-
Notifications
You must be signed in to change notification settings - Fork 0
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
TG-5586 Add unit tests for com.github.theholywaffle.teamspeak3.commands.FileCommands #1
Conversation
702285e
to
4ff801f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flawless 👍
Which tests did you write yourself? I can't even tell. :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New line
src/test/java/com/github/theholywaffle/teamspeak3/commands/FileCommandsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/github/theholywaffle/teamspeak3/commands/FileCommandsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/github/theholywaffle/teamspeak3/commands/FileCommandsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/github/theholywaffle/teamspeak3/commands/FileCommandsTest.java
Show resolved
Hide resolved
4ff801f
to
255bb95
Compare
These tests were written using Diffblue Cover. Dependencies required to run the tests have also been added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks neat. What's the coverage on this class?
@peterschrammel Everything apart from the private method (1 line). I've heavily re-wrote these (flattening the declarations where possible), and the stuff I added from scratch was basically every test that doesn't throw an exception. And I've had to use the |
Hi,
I've analysed your codebase and seen some gaps in the coverage of
commands.FileCommands
.I've written tests for these functions with the help of Diffblue Cover.
Hopefully, these tests should help you detect regressions caused by future code changes.