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

*: test coverage improvements #68

Merged
merged 6 commits into from
Dec 30, 2016
Merged

*: test coverage improvements #68

merged 6 commits into from
Dec 30, 2016

Conversation

cyphar
Copy link
Member

@cyphar cyphar commented Dec 29, 2016

This includes a lot of improvements to test coverage. In addition to adding
more tests, the main cool thing is that we now generate coverage reports that
cover all of the testing done in umoci, so you can get a sense for how
tested the whole codebase is. Currently I'm aiming to get ~80% test coverage.

Fixes #67
Signed-off-by: Aleksa Sarai asarai@suse.com

This adds a set of tests to the fairly trivial idtools package, with
100% test coverage.

Signed-off-by: Aleksa Sarai <asarai@suse.com>
These tests are part of libcontainer/user, but they were dropped because
I didn't bother to figure out why the build failed. I've figured it out,
and now the tests build.

Signed-off-by: Aleksa Sarai <asarai@suse.com>
This now includes all of the coverage stats for umoci during integration
testing. This stilll needs to be combined with unit tests to get a
proper sense of the overall statistics.

Signed-off-by: Aleksa Sarai <asarai@suse.com>
This means that we can compute the total coverage information for the
whole codebase, which is hard to do otherwise.

Signed-off-by: Aleksa Sarai <asarai@suse.com>
@cyphar cyphar added this to the 0.0.0 milestone Dec 29, 2016
Removed unused code, added tests and cleaned up some test code. We've
now hit the ~80% coverage target. So it's looking much better than
before.

Signed-off-by: Aleksa Sarai <asarai@suse.com>
Signed-off-by: Aleksa Sarai <asarai@suse.com>
@cyphar
Copy link
Member Author

cyphar commented Dec 29, 2016

LGTM.

@cyphar cyphar merged commit b9b427e into master Dec 30, 2016
cyphar referenced this pull request Dec 30, 2016
Closes cyphar/umoci#68
LGTMs: @cyphar
@cyphar cyphar deleted the improve-unit-tests branch December 30, 2016 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant