Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase Test Coverage #594

Closed
alaxalves opened this issue May 13, 2019 · 8 comments
Closed

Increase Test Coverage #594

alaxalves opened this issue May 13, 2019 · 8 comments

Comments

@alaxalves
Copy link
Member

I have realized that currently on Mapknitter we have ~60% of test coverage according to this right?!
I think that before we start we the upgrade it would be a MUST if we raised that to >80% minimum, as recommended here. Or we could be more ambitious and set a goal of 100%.
After this we could move forward with the upgrade. What do you think @kaustubh-nair @SidharthBansal @jywarren ?

@jywarren
Copy link
Member

Hi @alaxalves I believe Cess is already taking steps towards a Rails 4.0 upgrade here: #578

CodeCov cites ~70% coverage here: https://codecov.io/gh/publiclab/mapknitter

However, I think more test coverage would be great, and 80 or near 100% would be a great goal. I think @rarrunategu1 may be helping us with this as well in the coming weeks.

I would love to see us use this analysis tool to identify where we can increase our coverage:

https://codecov.io/gh/publiclab/mapknitter/tree/main/app

many of the low-rated files are quite simple, so I think we can pretty easily increase our coverage!

@SidharthBansal
Copy link
Member

Regarding test coverage, I think, we have create a lot of tests too. We miss many important test cases. I examined some flows, we have only 2-3 tests for those flows but there should be more test cases for them. So, may be we can create ftos for them later on.

@kaustubh-nair
Copy link
Member

I agree. We should aim for aroung 85% and pay special attention to edge cases

@alaxalves
Copy link
Member Author

@jywarren Could you add me and @kaustubh-nair to Mapknitter's Collaborators team with "write" privileges so that I can create the things proposed here by @SidharthBansal ??

@jywarren
Copy link
Member

Yeah!!! I just did.

@kaustubh-nair
Copy link
Member

I'll start adding tests, since @alaxalves is doing #598

@jywarren
Copy link
Member

jywarren commented May 15, 2019 via email

@alaxalves
Copy link
Member Author

alaxalves commented May 15, 2019

I'll start adding tests, since @alaxalves is doing #598

Thank you @kaustubh-nair I love DevOps, that's why I had to get #598 😄 😄 😄. Let me know if I can help you with anything. BTW, @cesswairimu said in #578 (comment) that she started this testing stuff. Maybe you could take advantage of his work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants