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

Get code coverage back over 80% #20

Open
ayld opened this issue May 24, 2015 · 5 comments
Open

Get code coverage back over 80% #20

ayld opened this issue May 24, 2015 · 5 comments
Assignees

Comments

@ayld
Copy link

ayld commented May 24, 2015

So fixing #19 dropped test coverage by 20%, because it turns out 20% of all tests were integration tests, which is not ideal, to say the least :D

The Minimizer should be unit tested! If it can not be unit tested, it should be cut down and then unit tested mercilessly!

Overall the goal of this issue is to get coverage back to ~80%

@ayld ayld self-assigned this May 24, 2015
@tishun
Copy link

tishun commented May 24, 2015

I actually disabled the tests. Will fix them, worry nawt!

@tishun tishun assigned tishun and unassigned ayld May 24, 2015
@ayld
Copy link
Author

ayld commented May 24, 2015

Erm, when?
They are currently enabled, the CI runs them.

I can also see that they've been running in the last 10 or so builds.

@ayld
Copy link
Author

ayld commented May 24, 2015

I can also see that the coverage fell after my commit, so this issue is mine !!
For I SHALT REPENT FOR WHAT I HAVE DONE!! bows head in woeful shame

@ayld ayld assigned ayld and unassigned tishun May 24, 2015
ayld added a commit that referenced this issue May 24, 2015
- integration tests were not working on windows due to "linux style" slashes in the paths, all slashes replaced with dots now
- replaced junit.framework.Assert with org.junit.Assert due to deprecation
@tishun
Copy link

tishun commented May 25, 2015

haha

ayld added a commit that referenced this issue Jun 7, 2015
- added MinimizationStrategy concept, with the intent of it using the "services" and using DI, so we can unit test the base logic
- some of the configuration is now moved out of the minimizer
- added "unit" test for the new minimization strategy
- Files is no longer final as it can't be mocked :( will have to probably use powermock as I hate non-final stuff when it should be final
@ayld
Copy link
Author

ayld commented Jun 7, 2015

Win!

Coverage is up by 5%.
Will try to get it over 80%.

ayld pushed a commit that referenced this issue Jun 19, 2015
ayld pushed a commit that referenced this issue Jun 19, 2015
- also JdkToolCalls now clears args state after successful execution
ayld pushed a commit that referenced this issue Jun 24, 2015
- added separate non-integration test for the indexed minimizer
- added a size() method to the index, returning count of currently index class nodes
- added test for the new method
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

2 participants