-
Notifications
You must be signed in to change notification settings - Fork 294
Conversation
e228c01
to
0cf6446
Compare
FYI - this will conflict with #944 and can be resolved pending the order of merges @intelsdi-x/snap-maintainers |
Hey @katarzyna-z - this looks great. Code overage is hitting the mark:
The only catch for our definition of small is that tests cover other packages. Like those in |
"github.com/intelsdi-x/snap/control/plugin" | ||
"github.com/intelsdi-x/snap/core" | ||
"github.com/intelsdi-x/snap/core/cdata" | ||
"github.com/intelsdi-x/snap/core/ctypes" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fact that these other Snap packages are being imported hints at this not being a true small
test (since it relies on functionality from these other packages); ideally the calls to the functions or methods in these other packages should be mocked if this really is a set of small
tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't agree with this approach. What is the point of mocking github.com/intelsdi-x/snap/core/ctypes
, when I just need ctypes.ConfigValue
for my test?
Disregard, forgot this is a plugin in snap repo. |
5e9f734
to
aed8f03
Compare
I renamed the tests to "medium". @intelsdi-x/snap-maintainers |
LGTM, @katarzyna-z |
@intelsdi-x/snap-maintainers Can this pull request be merged? |
LGTM too. Merging. |
Summary of changes:
@intelsdi-x/snap-maintainers