matcha-devs / matcha

A comprehensive web-based personal finance tracker and budgeting tool.
6 stars 0 forks source link

Holly remastered our unit tests and now they go hard #6

Closed CarlosACJ55 closed 3 months ago

CarlosACJ55 commented 3 months ago

Purpose

Added necessary unit tests to the database package such as TestNew, and formalized our TestMain and helper tests

Usage

I also made sure to include the correct testing configuration "go test matcha" which makes it really clean to run all module tests

Changes

Rationale

This method of testing is far more reusable and actualy prevents anyone ushing breaking changes to our init.sql script and mysql.gop database implementation. It also allows us to test private helpers etc.

Dependencies

N/A

Issues and Bugs

Possible Solutions

N/A

Additional Notes

N/A

Contributors(@):

@CarlosACJ55


Checklist before submitting