Unit tests needed

Bug #1787611 reported by Corey Bryant
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zVM Cloud Connector
Fix Released
Medium
Huang Rui

Bug Description

It would be great to get some unit test coverage. There doesn't seem to be much coverage other than for smutLayer.

Revision history for this message
jichenjc (jichenjc) wrote :

um..are you suggesting to increase unit test coverage of sdk itself?
actually, https://github.com/mfcloud/python-zvm-sdk/tree/master/zvmsdk/tests/unit
has all the unit test cases and for each patch submitted, we will run it automatically

so I don't know what kind of additional unit test is requested

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Ok I see what the problem is. I'm packaging this up for Ubuntu and we pull source from the published tarball which doesn't include the test directory you referenced and also doesn't include tox.ini.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Any chance you can include those and anything else that's needed for testing in your published tarballs?

Revision history for this message
jichenjc (jichenjc) wrote :

For our previous experience, usually the tgz will exclude the test files to make it easier and simple, any reason to keep those test files ?because of we want to make sure the deb file build correctly?

Anyway, we are analyzing and will include those if needed, thanks for the suggestion

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Yes, it allows downstream maintainers to verify the package during builds. For example, unit tests will catch an outdated dependency python package, among other things. It's standard practice to include test files in release tarballs in my experience. Additionally for Ubuntu, it's difficult to get a package into (fully supported) Main repositories without having tests to run. Thanks for looking into it.

Revision history for this message
jichenjc (jichenjc) wrote :

ok, got your point, I will ask folks to help on this , thanks for the bug report

Changed in python-zvm-sdk:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Huang Rui (bjhuangr)
Huang Rui (bjhuangr)
Changed in python-zvm-sdk:
status: Confirmed → In Progress
Revision history for this message
Huang Rui (bjhuangr) wrote :
Changed in python-zvm-sdk:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Huang Rui (bjhuangr) wrote :

1.2.4 released for including unit tests.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.