FunkLoad icon indicating copy to clipboard operation
FunkLoad copied to clipboard

cannot skip tests

Open timurb opened this issue 11 years ago • 0 comments

If I try to skip some tests via unittest.skip decorator the test suite fails instead of marking it as skipped:

  @unittest.skip("Not implemented")
  def test_login(self):
    """Check if the server permits logins."""
    pass
$  fl-run-test test_geogrep.py MyTest.test_login                                                                     F
======================================================================
FAIL: test_login (test_geogrep.Geogrep)
Check if the server permits logins.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/funkload/FunkLoadTestCase.py", line 946, in __call__
    testMethod()
  File "/usr/lib/python2.7/unittest/case.py", line 62, in skip_wrapper
    raise SkipTest(reason)
SkipTest: Not implemented

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (failures=1)

(the same output if I don't specify the test to run)

timurb avatar Nov 09 '13 09:11 timurb