cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashanth Manthena <prashanth.manth...@nuagenetworks.net>
Subject Re: Another question about Marvin
Date Wed, 27 Apr 2016 15:07:31 GMT
Hi Will,

1) will run a, b, c
2) will run only b
3) will run only c

Nosetests will run all the testcases that match attribute (tags)
combination you specify in the command.

Default (no tag(s) specified): It will run all the testcases.

With regards,
Prashanth



On Wed, Apr 27, 2016 at 4:30 PM, Will Stevens <williamstevens@gmail.com>
wrote:

> So I see a few different ways in which tests are defined.
>
> For example, here are a few different attribute configurations:
>
> a) @attr(tags=["advanced", "intervlan"])
> b) @attr(tags=["advanced", "intervlan"], required_hardware="true")
> c) @attr(tags=["advanced", "intervlan"], required_hardware="false")
>
> Then there are different ways to run tests.  Some examples are:
>
> 1) nosetests --with-marvin --marvin-config=${marvinCfg} -s -a tags=advanced
> 2) nosetests --with-marvin --marvin-config=${marvinCfg} -s -a
> tags=advanced,required_hardware=true
> 3) nosetests --with-marvin --marvin-config=${marvinCfg} -s -a
> tags=advanced,required_hardware=false
>
> I am trying to figure out which tests are run in each case.
>
> I think 2) is the easiest case because it should only run b).
>
> 3) is a little less clear to me because I know it will run c), but will it
> run a)?
>
> 1) is the least clear to me because I don't know if it will run any of the
> 'required_hardware' tests.
>
> Can someone drop a little knowledge on me?
>
> Thanks,
>
> Will
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message