Carleslc / Simple-YAML

This Java API provides an easy-to-use way to store data and provide configurations using the YAML format.
https://carleslc.me/Simple-YAML
GNU General Public License v3.0
130 stars 38 forks source link

Reliable and more powerful unit testing. #15

Closed portlek closed 4 years ago

portlek commented 4 years ago

ATM, the testing is not safe so much. We should add official unit test with jupiter and it should work when we build the project.

<dependency>
    <groupId>org.junit.jupiter</groupId>
    <artifactId>junit-jupiter</artifactId>
    <version>5.6.2</version>
    <scope>test</scope>
</dependency>

Also, need a plugin;

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.22.2</version>
</plugin>

for automatic tests when the project is building.

Carleslc commented 4 years ago

You're right. Current tests are not unit tests, they were created for example of usage of the library. However, unit tests with JUnit are preferable for testing.

portlek commented 4 years ago

You're right. Current tests are not unit tests, they were created for example of usage of the library. However, unit tests with JUnit are preferable for testing.

junit = jupiter :D