← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1334134] Re: Example for running individual unit tests doesn't work

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1334134

Title:
  Example for running individual unit tests doesn't work

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  TESTING.rst in the neutron git repo has this examples for running
  individual unit tests:

    For example, the following would run only the JSONV2TestCase tests from
    neutron/tests/unit/test_api_v2.py::

          $ ./run_tests.sh neutron.tests.unit.test_api_v2:JSONV2TestCase

    or::

          $ ./tox neutron.tests.unit.test_api_v2:JSONV2TestCase

  
  If I run this on my test system (openSUSE 13.1) it will not execute any test case:
  ====================================================
  Running `OS_TEST_PATH=neutron/tests/unit tools/with_venv.sh python -m neutron.openstack.common.lockutils python setup.py testr --slowest --testr-args='--subunit  neutron.tests.unit.test_api_v2:JSONV2TestCase'`
  running testr
  running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit} --list 
  Slowest Tests

  ----------------------------------------------------------------------
  Ran 0 tests in 7.737s

  OK
  ====================================================

  Simply replacing the ':' with a '.' works here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1334134/+subscriptions


References