[UnitTest] Setup 100% Coverage on all Repositories
In an effort to implement testing across our application, we will start by implementing a 100% Coverage for all repositories.
First, we need to configure and set up the right tools to work with coverage.
- [x] Setup and Configure Coverage Tools (eg. LCOV)
Implement tests:
- [ ] Unit Tests for User Repository
- [ ] Unit Tests for Contact Form Repository
- [ ] Unit Tests for CrowdAction Repository
- [x] Unit Tests for Profile Repository
- [ ] Unit Tests for Avatar Repository
- [ ] Unit Tests for Firebase Auth Repository
- [ ] Unit Tests for Settings Repository
- [ ] Unit Tests for Participation Repository
@yasht01 @sudo-saksham We can slowly start on this, feel free to just pick up anyone at any given time, and simply let eachother know when there's a new PR 👍
Yeah, cool. I prefer starting with the lower level. So maybe writing unit tests for model classes.
Yeah, cool. I prefer starting with the lower level. So maybe writing unit tests for model classes.
You can write Tests for the DTO's, more specifically from and to json.
I'll create another Issue with the DTOs we need to write tests for and what type of tests.
@sudo-saksham #224 This one is fairly straightforward.