[openstack-dev] [Nova] Remove duplicate code using Data Driven Tests (DDT)

Sheel Rana Insaan ranasheel2000 at gmail.com
Thu Jul 21 10:03:07 UTC 2016


Hi Dinesh Bhor,

I could see a lot of projects have used this. Seems interesting.
You can refer Cinder, for example.

I think we should not raise bug for this. For me it's invalid.

You can treat this as improvement(just to reduce test code blocks), it
 seems ok to go ahead even without any BP or spec.

Best Regards,
Sheel Rana

On Thu, Jul 21, 2016 at 2:33 PM, Bhor, Dinesh <Dinesh.Bhor at nttdata.com>
wrote:

> Hi Nova Devs,
>
>
>
> Many times, there are a number of data sets that we have to run the same
> tests on.
>
> And, to create a different test for each data set values is time-consuming
> and inefficient.
>
>
>
> Data Driven Testing [1] overcomes this issue. Data-driven testing (DDT) is
> taking a test,
>
> parameterizing it and then running that test with varying data. This
> allows you to run the
>
> same test case with many varying inputs, therefore increasing coverage
> from a single test,
>
> reduces code duplication and can ease up error tracing as well.
>
>
>
> DDT is a third party library needs to be installed separately and invoke
> the
>
> module when writing the tests. At present DDT is used in cinder and rally.
>
>
>
> To start with, I have reported this as a bug [2] and added initial patch
> [3] for the same,
>
> but couple of reviewers has suggested to discuss about this on ML as this
> is not a real bug.
>
> IMO this is not a feature implementation and it’s just a effort for
> simplifying our tests,
>
> so a blueprint will be sufficient to track its progress.
>
>
>
> So please let me know whether I can file a new blueprint or nova-specs to
> proceed with this.
>
>
>
> [1] http://ddt.readthedocs.io/en/latest/index.html
>
> [2] https://bugs.launchpad.net/nova/+bug/1604798
>
> [3] https://review.openstack.org/#/c/344820/
>
>
>
> Thank you,
>
> Dinesh Bhor
>
> ______________________________________________________________________
> Disclaimer: This email and any attachments are sent in strictest confidence
> for the sole use of the addressee and may contain legally privileged,
> confidential, and proprietary data. If you are not the intended recipient,
> please advise the sender by replying promptly to this email and then delete
> and destroy this email and any attachments without any further use, copying
> or forwarding.
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160721/b23fb892/attachment.html>


More information about the OpenStack-dev mailing list