SwEnt-Group13 / Unio

The world’s largest campus life platform.
3 stars 1 forks source link

test: Write additional tests to increase code coverage for AssociationProfile #80

Closed Romainhir closed 6 days ago

Romainhir commented 6 days ago

The line coverage of the "AssociationProfile" can be improved with more tests. This is the purpose of this PR. It includes :

More test will be done when we will link the backend to this screen

sonarcloud[bot] commented 6 days ago

Quality Gate Failed Quality Gate failed

Failed conditions
75.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Romainhir commented 6 days ago

LGTM. I'll have to find out more about the snackbar with some research, but interesting! Also, is it normal that these lines, which contain test tags, aren't tested?

Screenshot 2024-10-17 at 10 28 13

Yes, because this is linked to the view model and because association UI is not linked to the backend yet, I don't think it is relevant to add test to this part. We will do it later of course tho