[wingide-users] Unittest veteran needs trivial example to debug
bolson at ubs-icap.org
Fri Sep 24 08:45:58 MDT 2010
John, I got it working with a simple example, a brand new project that just
runs a few simple unit tests. Nice, simple unit test GUI, BTW!
But in a more complex project package, when I try "Run Tests in Current
File" on this file:
"""tests.py FOR NOW, THIS DOES NOTHING. JUST TESTING THE WINGIDE TEST
class TestTest( unittest.TestCase):
self.name = "stuff"
self.assertEqual( "stuff", self.name)
self.assertEqual( "stuffy", self.name)
...WingIDE's testing tool box shows "tests.py" doesn't seem to find the
tests. The status bar indicates tests starting then finished, then
"tests.py" appears in the tool box with a blue question mark still by it
and no children.
Details: If I uncomment unittest.main() and debug, the tests run as
expected, with one failing. Removing the test file from the tool box and
re-running doesn't seem to help. My project default test framework is set to
Could it be some package __init__.py or some project setting if interfering
with test discovery? Willing to do a little sleuthing here if you have any
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the wingide-users