AtriEx / ATX

10 stars 1 forks source link

FastAPI Unit Testing #68

Open Sovamorco opened 3 months ago

Sovamorco commented 3 months ago

Backend Testing

Problem

The backend repository lacks comprehensive unit tests. Without proper test coverage, it’s challenging to ensure code correctness, detect regressions, and maintain reliability. Introducing a robust unit testing framework will enhance code quality, boost confidence, and facilitate future development. By prioritizing unit testing, your backend codebase will be more robust, maintainable, and reliable.

Proposed Solution

Introduce basic unit testing to the repository using a testing framework (PyTest, Coverage, etc.) and a GitHub action that will run the test against all PR’s made against the main branch. Establish a baseline test coverage (start low and increase as the code becomes more resilient). This will force the habit of testing code, maintain established functionality, and ensure that code quality is checked before making it’s way to functionality.

Acceptance Criteria

Resources


Imported from trello Members: datpieceofcake

Sovamorco commented 3 months ago

Imported from trello Original author: datpieceofcake


I’ve mostly put this on hold until the buy order branch is merged.