[PATCH 5/6] tests: Add a way for the user to skip selenium tests

Finucane, Stephen stephen.finucane at intel.com
Wed Sep 23 03:44:33 AEST 2015


> On Tue, Sep 22, 2015 at 06:23:45PM +0100, Finucane, Stephen wrote:
> > > It's a bit more convoluted to setup the test environment to work with
> > > selenium (eg. needs a browser installed and Xorg running, ...). It's
> > > possible someone would want to skip those.
> > >
> > > Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
> >
> > Why not just add an additional tox target?
> 
> In addition you mean? a target that would set the env variable?

Actually, that wouldn't work as there doesn't seem to be a way to specify tests to skip (only tests to run). Two other items though:

* Use the '@unittest.skipIf' decorator
  https://docs.python.org/dev/library/unittest.html#skipping-tests-and-expected-failures
* Add documentation on this so people know about the option/how to enable it/why it exists

Stephen


More information about the Patchwork mailing list