Enable XMLTestRunner to make TestResults for in-memory usage #176
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
First, I want to be very clear that half the reason I'm offering this PR is to practice doing PRs. While I do think it may be useful to other people it definitely takes the XMLTestRunner in a new direction and so please do feel free to reject this :)
The goal is to have a test runner that can generate a complete TestResult object/tree, and then hand that TestResult off to something else to process (instead of forcing the 'something else' to consume XML from a file written to the local filesystem).
I was thinking about using the unittest.TextTestRunner class, but that one doesn't list the successful test runs. XMLTestRunner does list the successes, which makes it a bit better for what I wanted it for.
The Change: By setting the .output field to None the XMLTestRunner will still run all the tests but not generate the XML output, leaving client software to access the awesomely thorough TestResult purely in-memory, instead.