>>> import os
>>> from nose.plugins.xunit import Xunit
>>> from nose.plugins.skip import SkipTest, Skip
>>> support = os.path.join(os.path.dirname(__file__), 'support')
>>> outfile = os.path.join(support, 'nosetests.xml')
>>> from nose.plugins.plugintest import run_buffered as run
>>> argv = [__file__, '-v', '--with-xunit', support,
... '--xunit-file=%s' % outfile]
>>> run(argv=argv, plugins=[Xunit(), Skip()])
test_skip.test_ok ... ok
test_skip.test_err ... ERROR
test_skip.test_fail ... FAIL
test_skip.test_skip ... SKIP: not me
======================================================================
ERROR: test_skip.test_err
----------------------------------------------------------------------
Traceback (most recent call last):
...
Exception: oh no
======================================================================
FAIL: test_skip.test_fail
----------------------------------------------------------------------
Traceback (most recent call last):
...
AssertionError: bye
----------------------------------------------------------------------
XML: ...nosetests.xml
----------------------------------------------------------------------
Ran 4 tests in ...s
FAILED (SKIP=1, errors=1, failures=1)