Ticket #85 (assigned)
Is it possible to have more control over TestProgram configuration when running the nose from within python code?
| Priority: | normal | Reporter: | q_canada-at-yahoo.com |
|---|---|---|---|
| Severity: | enhancement | Assigned to: | jpellerin (accepted) |
| Component: | nose | Status: | assigned |
| Version: | 0.9 | Resolution: | |
| Milestone: | 1.0 | Keywords: | TestProgram |
Description by q_canada-at-yahoo.com:
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
Changelog
Mon Aug 28 17:36:19 2006: Modified by jpellerin
- milestone set to 1.0
- status changed from new to assigned
