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 <williamstev...@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
>

Reply via email to