HyperiumClient / Hyperium-Kotlin

Hyperium Client rewritten in Kotlin with good coding standards.
GNU Lesser General Public License v3.0
5 stars 3 forks source link

Setup testing and added base tests #15

Closed FalseHonesty closed 5 years ago

FalseHonesty commented 5 years ago

Description

In this PR, I have added the base needed for writing tests in this project. This includes a testing framework, as well as a mocking library to allow us to write tests easily. Tests are important for numerous reasons, and there are any number of sources on Google that can cover why more eloquently than I can, so I encourage you to read those.

There are two new dependencies required for this, however, they do not need to be included in the packaged JAR. They are:

Type of change

Please delete options that are not relevant.

CoalCoding commented 5 years ago

Huge fan of this, will benefit the client a lot.

FalseHonesty commented 5 years ago

I've found this blog post, and I have found it to be a very good resource on some best practices for writing these tests. I believe that we should try to follow these goals in our test suite.