On 22 April 2013 22:58, Kelsey Prantis <
krw...@gmail.com> wrote:
> Hi Folks,
>
> I am hoping I could perhaps get some advice on troubleshooting a problem I
> am having using nose.
>
> I have a directory of tests I am running with nose, and it goes ahead and
> runs all of the tests just fine, and reports the results (stacktraces, the
> summary of passed, failed, errored, etc), but then just hangs and never
> exits, with no additional output. I've let it hang as long as 17 hours. I
> can do a ps -ef | grep nose and see that the process for running the tests
> is still running.
>
> Frankly, I have no idea where to go from here. Since our tests themselves
> have completed executing, I'm not sure where a problem is even occurring. In
> nose itself? In some thread started by nose that can't be stopped or
> something? I could use some tips on how to dig into what is even happening.
> Is it possible to get nose to output some kind of debug information itself
> about what it is doing?
>
> Details:
> - nose version 1.2.1
> - plugins in use: django-nose, nose-testconfig==0.8
> - nose command: nosetests --verbosity=2 --tc-file=path/to/some.json
> --tc-format=json --with-xunit --xunit-file /path/to/tests
>
> It doesn't actually even happen every time, just sporadically.
>
> Any advice is appreciated,
>
> Kelsey
>
nose does support debug output using the -l option. So you'd have to
do something like:
$ nosetests --verbosity=2 --tc-file=path/to/some.json --tc-format=json
--with-xunit --xunit-file /path/to/tests -l <nose.debug.module>
Where the debug module is something you can isolate as described in the docs:
-l DEBUG, --debug=DEBUG
Activate debug logging for one or more systems.
Available debug loggers: nose, nose.importer,
nose.inspector, nose.plugins, nose.result and
nose.selector. Separate multiple names with a comma.
I don't use the django-nose plugin myself so if it's something plugin
specific I'd enable logging at logger: nose.plugins and see what's
going wrong.