team401 / coppercore

0 stars 0 forks source link

Add unit test framework to coppercore #10

Open jkleiber opened 2 months ago

jkleiber commented 2 months ago

The objective of this ticket is to add a unit testing framework to the library, while also providing an example of how it works.

This can be anything as long as it is easy to use and understand by other members of the team. The way to gain buy in is:

avidraccoon commented 2 months ago

It appears there is a system in gradle for unit testing. Should I just make an example of using that so other people can see how to implement gradle's system?

jkleiber commented 2 months ago

@avidraccoon yeah let's do that to start

avidraccoon commented 2 months ago

Should I show examples of how to set it up to be able to isolate certain parts to be tested?

Also, could you let me know what examples you want me to make?

jkleiber commented 2 months ago

@avidraccoon I recommend adding a feature to coppercore and then making a unit test for it. That can serve as the example.

If you can easily write multiple test cases with good coverage that would be best, but a single test to show normal operations work would be fine as well