collaction_app icon indicating copy to clipboard operation
collaction_app copied to clipboard

[UnitTest] Setup 100% Coverage on all Repositories

Open Xazin opened this issue 3 years ago • 4 comments

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

Xazin avatar May 10 '22 17:05 Xazin

@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 👍

Xazin avatar May 19 '22 11:05 Xazin

Yeah, cool. I prefer starting with the lower level. So maybe writing unit tests for model classes.

saksham-gt avatar May 19 '22 11:05 saksham-gt

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.

Xazin avatar May 19 '22 11:05 Xazin

@sudo-saksham #224 This one is fairly straightforward.

Xazin avatar May 19 '22 11:05 Xazin