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

Coverage below 75% #62

Open
plusparth opened this issue Jul 18, 2016 · 9 comments
Open

Coverage below 75% #62

plusparth opened this issue Jul 18, 2016 · 9 comments

Comments

@plusparth
Copy link
Contributor

This means that only 17% of the code written is being tested by nosetests. The unit tests should be written so that every possibility of input (going into each possible if statement, etc) is covered.

@plusparth
Copy link
Contributor Author

Apparently that's only for the files that actually have unit tests (there are only 6). This doesn't even cover the files that don't have unit tests written. We need more unit tests.

@joonbang joonbang changed the title This project has only 17% coverage Low coverage Jul 19, 2016
@inchkev inchkev added this to the End of Summer milestone Aug 15, 2016
@plusparth plusparth changed the title Low coverage Coverage below 50% Aug 15, 2016
@plusparth
Copy link
Contributor Author

plusparth commented Aug 15, 2016

Will mark issue as resolved after repository coverage goes above 50% 60% 75% (to set a definite goal for the end of summer)

@plusparth plusparth changed the title Coverage below 50% Coverage below 60% Aug 15, 2016
@plusparth plusparth changed the title Coverage below 60% Coverage below 75% Aug 16, 2016
@physikerwelt
Copy link
Member

@DRMF/developers I was skiing two weeks ago, thus I think the milestone "End of summer" should be reached by now;-)
However, as far as I can see the coverage is not increasing anymore
https://coveralls.io/github/DRMF/DRMF-Seeding-Project?branch=master
Can we do something to increase the coverage again.

Given the experience that code had to be rewritten "from the ground up", I think we should focus on high quality code rather than on many lines.

I would like to advocate for the idea of atomic commits. If you have problems to break down the change into small changes (you should try to make at least one commit every time you are in the office) you should probably go back to the drawing board and discuss with others what you want to achieve and how you can break it down to small changes. During this process, you should also define how you can test that the code you added or changed does what it is supposed to do.

While this might seem to be more effort in the first place, it will certainly pay off in the future.

@plusparth
Copy link
Contributor Author

@physikerwelt I think that one of the reasons coverage percentage has stalled is because we have not merged two of the largest pull requests because they are still incomplete. I think @joonbang and @edward-bian have been increasing coverage on their PRs - when they're done, we will probably approach 80-90% coverage.

@HowardCohl
Copy link
Member

@joonbang @edward-bian @KChen1250 See @physikerwelt comment above.

@physikerwelt
Copy link
Member

I see that there is a pull request which would increate the test rate from 59% to 80%. What is the main blocker for merging the request?

@joonbang
Copy link
Contributor

Actually, I haven't written any unit tests for the code in my pull request yet. However, by removing the old code (and what little unit tests there were, like 10%?), it significantly increased coverage.

@physikerwelt
Copy link
Member

Why can't you keep the old unit tests. In theory the should still work!?

@joonbang
Copy link
Contributor

Well, there honestly wasn't many unit tests, and I completely rewrote the code as well, so the individual functions (both uses and outputs) are different. There are also some minor (formatting-wise) differences in the final output.

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

No branches or pull requests

8 participants