I can't work out how to get the unit test support to work, it seems to be undocumented. If I run my unit test suite as a command it works fine. If I run it using the unit test method, I get this:
pydev debugger: warning: psyco not available for speedups (the debugger will sti
ll work correctly, but a bit slower)
pydev debugger: starting
Finding files…
… done
Importing test modules … testApplyDisabledPackageConfiguration (tests.cases.bu
ild_environment_tests.BuildEnvironmentTests) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testApplyPackageConfiguration (tests.cases.build_environment_tests.BuildEnvironm
entTests) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testTryFindNonExistantEnv (tests.cases.build_environment_tests.BuildEnvironmentT
ests) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testTryFindSingleEnv (tests.cases.build_environment_tests.BuildEnvironmentTests)
… Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testTryFindThreeMatches (tests.cases.build_environment_tests.BuildEnvironmentTes
ts) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPrintCurrentRevision (tests.cases.buildscript_interface_tests.BuildScriptInt
erfaceTests) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPrintRevisionsSince (tests.cases.buildscript_interface_tests.BuildScriptInte
rfaceTests) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testQuerySetting (tests.cases.buildscript_interface_tests.BuildScriptInterfaceTe
sts) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPersistBuildInfo (tests.cases.buildstatus_persistence_tests.BuildStatusPersi
stenceTests) … ok
test_aaa_queryProjectName (tests.selftest.charm_build_tests.CharmBuildTests) …
Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testChangeDirectory (tests.cases.environment_saver_tests.EnvironmentSaverTest) .
.. ok
testSetVariable (tests.cases.environment_saver_tests.EnvironmentSaverTest) … o
k
testPathResolver (tests.cases.path_resolver_tests.PathResolverTest) … ok
testBalancedAndUnbalancedBrackets (tests.cases.preprocessor_tests.PreprocessorTe
st) … ok
testEmptyinputString (tests.cases.preprocessor_tests.PreprocessorTest) … ok
testEscapePattern (tests.cases.preprocessor_tests.PreprocessorTest) … ok
testMultipleEscapePatterns (tests.cases.preprocessor_tests.PreprocessorTest) …
ok
testUnbalancedBrackets (tests.cases.preprocessor_tests.PreprocessorTest) … ok
testinputStringWithoutPlaceholders (tests.cases.preprocessor_tests.PreprocessorT
est) … ok
testPrintAllRevisionsSince (tests.cases.run_mode_print_tests.RunModePrintTests)
… Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPrintCurrentRevision (tests.cases.run_mode_print_tests.RunModePrintTests) ..
. Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPrintRevisionsSince (tests.cases.run_mode_print_tests.RunModePrintTests) …
Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testRunWithTimeout (tests.cases.run_timeout_tests.RunWithTimeoutTest) … Usage:
runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testRunWithoutTimeout (tests.cases.run_timeout_tests.RunWithTimeoutTest) … Usa
ge: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testCreateGitScm (tests.cases.scm_factory_tests.ScmFactoryTests) … Usage: runf
iles.py
runfiles.py: error: no such option: -verbosity
ERROR
testCreateUnknownScm (tests.cases.scm_factory_tests.ScmFactoryTests) … Usage:
runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testCBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testDBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testEBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testFBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testHBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testMBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPrintCurrentRevision (tests.selftest.simple_project_tests.SimpleProjectTests
) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testQueryMomVersion (tests.selftest.simple_project_tests.SimpleProjectTests) …
Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testQueryProjectName (tests.selftest.simple_project_tests.SimpleProjectTests) ..
. Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testSBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testUsageHelp (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage
: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testSlaveRunFindRevisions (tests.selftest.simple_ci_tests.SimpleCITests) … Usa
ge: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testSlaveRunPerformBuilds (tests.selftest.simple_ci_tests.SimpleCITests) … Usa
ge: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testUsageHelp (tests.selftest.simple_ci_tests.SimpleCITests) … Usage: runfiles
.py
runfiles.py: error: no such option: -verbosity
ERROR
testConvertXmlReportToHtml (tests.cases.xml_report_tests.XmlReportTests) …
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-09-16
Any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't work out how to get the unit test support to work, it seems to be undocumented. If I run my unit test suite as a command it works fine. If I run it using the unit test method, I get this:
pydev debugger: warning: psyco not available for speedups (the debugger will sti
ll work correctly, but a bit slower)
pydev debugger: starting
Finding files…
… done
Importing test modules … testApplyDisabledPackageConfiguration (tests.cases.bu
ild_environment_tests.BuildEnvironmentTests) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testApplyPackageConfiguration (tests.cases.build_environment_tests.BuildEnvironm
entTests) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testTryFindNonExistantEnv (tests.cases.build_environment_tests.BuildEnvironmentT
ests) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testTryFindSingleEnv (tests.cases.build_environment_tests.BuildEnvironmentTests)
… Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testTryFindThreeMatches (tests.cases.build_environment_tests.BuildEnvironmentTes
ts) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPrintCurrentRevision (tests.cases.buildscript_interface_tests.BuildScriptInt
erfaceTests) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPrintRevisionsSince (tests.cases.buildscript_interface_tests.BuildScriptInte
rfaceTests) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testQuerySetting (tests.cases.buildscript_interface_tests.BuildScriptInterfaceTe
sts) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPersistBuildInfo (tests.cases.buildstatus_persistence_tests.BuildStatusPersi
stenceTests) … ok
test_aaa_queryProjectName (tests.selftest.charm_build_tests.CharmBuildTests) …
Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testChangeDirectory (tests.cases.environment_saver_tests.EnvironmentSaverTest) .
.. ok
testSetVariable (tests.cases.environment_saver_tests.EnvironmentSaverTest) … o
k
testPathResolver (tests.cases.path_resolver_tests.PathResolverTest) … ok
testBalancedAndUnbalancedBrackets (tests.cases.preprocessor_tests.PreprocessorTe
st) … ok
testEmptyinputString (tests.cases.preprocessor_tests.PreprocessorTest) … ok
testEscapePattern (tests.cases.preprocessor_tests.PreprocessorTest) … ok
testMultipleEscapePatterns (tests.cases.preprocessor_tests.PreprocessorTest) …
ok
testUnbalancedBrackets (tests.cases.preprocessor_tests.PreprocessorTest) … ok
testinputStringWithoutPlaceholders (tests.cases.preprocessor_tests.PreprocessorT
est) … ok
testPrintAllRevisionsSince (tests.cases.run_mode_print_tests.RunModePrintTests)
… Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPrintCurrentRevision (tests.cases.run_mode_print_tests.RunModePrintTests) ..
. Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPrintRevisionsSince (tests.cases.run_mode_print_tests.RunModePrintTests) …
Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testRunWithTimeout (tests.cases.run_timeout_tests.RunWithTimeoutTest) … Usage:
runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testRunWithoutTimeout (tests.cases.run_timeout_tests.RunWithTimeoutTest) … Usa
ge: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testCreateGitScm (tests.cases.scm_factory_tests.ScmFactoryTests) … Usage: runf
iles.py
runfiles.py: error: no such option: -verbosity
ERROR
testCreateUnknownScm (tests.cases.scm_factory_tests.ScmFactoryTests) … Usage:
runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testCBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testDBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testEBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testFBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testHBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testMBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testPrintCurrentRevision (tests.selftest.simple_project_tests.SimpleProjectTests
) … Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testQueryMomVersion (tests.selftest.simple_project_tests.SimpleProjectTests) …
Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testQueryProjectName (tests.selftest.simple_project_tests.SimpleProjectTests) ..
. Usage: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testSBuild (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage: r
unfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testUsageHelp (tests.selftest.simple_project_tests.SimpleProjectTests) … Usage
: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testSlaveRunFindRevisions (tests.selftest.simple_ci_tests.SimpleCITests) … Usa
ge: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testSlaveRunPerformBuilds (tests.selftest.simple_ci_tests.SimpleCITests) … Usa
ge: runfiles.py
runfiles.py: error: no such option: -verbosity
ERROR
testUsageHelp (tests.selftest.simple_ci_tests.SimpleCITests) … Usage: runfiles
.py
runfiles.py: error: no such option: -verbosity
ERROR
testConvertXmlReportToHtml (tests.cases.xml_report_tests.XmlReportTests) …
Any ideas?
I've just checked it here and all seems OK in the pydev side. My guess is that it's something in your test case which is making that happen.
Which pydev version are you using? If you create a simple test case in the root of your project (as below), does this happen?
class Test(unittest.TestCase):
def testIt(self):
print 'now'
Cheers,
Fabio
How bizarre, this seems to be working locally with a simple test case. Sorry, should have tested this myself. Thanks!