COS301-SE-2024 / The-Republic

Imagine a fusion of ‘Eskom se Push’ and ‘X’. The Republic allows users to raise concerns and spread awareness about government services through incident reports, with cool data visualizations providing a dynamic overview of public sentiment on service delivery.
https://the-republic.co.za/about
7 stars 0 forks source link

Add tests for backend repositories #193

Closed MulisaMusehane closed 2 months ago

MulisaMusehane commented 2 months ago

The following backend repositories have insufficient test coverage. This issue aims to improve the coverage to ensure better reliability and maintainability.

Checkpoints:

TebogoYungMercykay commented 2 months ago

@hlokomani suggested that we test only the Controller and Service layers since that's where the heavy lifting is. The Repository layer (db) contains only queries, which would fail to execute if there were any issues, so we do not need to test it from what he said, that's if I'm not mistaken.

MulisaMusehane commented 2 months ago

Thanks for the heads up - I’ll take that into account and close this ticket. 🎟️ @hlokomani can I close it?