nose-devs/nose — Issue #175: Is it possible to have more control over TestProgram configuration when running the nose from within python code?
Author: jpellerin
Created: 2011-12-14 16:02:45+00:00
State: open

I am trying to use nose with the NoseXML plugin. When I call:

nose.run(argv=['--with-nosexml','--xml-report-file=some_file']),

I get my NoseXML output in some_file. This is nice.

On the other hand, it would be nicer if I could specify a StringIO that the
NoseXML could write to instead of a file in the filesystem.

I have managed to do this by poking around inside the nose.core.TestProgram
class and nose.core.configure function, but my solution is not really
acceptable for long-term use. I manually insert a StringIO into the
configuration information after argv is parsed and before it is passed to
the plugins.

Please consider providing a different means for specifying configuration
information to nose when it is run using nose.run(). I would be glad to
help with this if it would be an acceptable change.

And if I've missed the proper way to do something like this, please let me
know.

Thanks,
Matthew Desmarais

Google Code Info:
Issue #: 16
Author: jpelle...@gmail.com
Created On: 2006-12-20T02:27:19.000Z
Closed On: 2007-06-27T21:03:45.000Z