nestorsalceda / mamba

The definitive testing tool for Python. Born under the banner of Behavior Driven Development (BDD).
http://nestorsalceda.github.io/mamba
MIT License
518 stars 65 forks source link

Add JUnit XML Formatter #125

Closed kfischer-okarin closed 4 years ago

kfischer-okarin commented 5 years ago

I added a JUnit xml formatter, which generates an XML file that can be read by CircleCI.

For now the content of the XML is output to stdout and thus can be redirected into a file with >...

Should I add something like an --output?

jsenin commented 5 years ago

@nestorsalceda this PR has a little but important detail, it pass the module filename to the reporters. One feature we miss in is that documentation formatter don't show the source file for failing tests. Would be great to show it for speedup finding failing tests. So, if you consider that this PR could be approved, we can use it to modify the documentation reporter and provide this improvement. Thanks

mnezh commented 4 years ago

is there any chance this PR will be merged and a new release published?

nestorsalceda commented 4 years ago

@nestorsalceda this PR has a little but important detail, it pass the module filename to the reporters. One feature we miss in is that documentation formatter don't show the source file for failing tests. Would be great to show it for speedup finding failing tests. So, if you consider that this PR could be approved, we can use it to modify the documentation reporter and provide this improvement. Thanks

I like it. Thanks for pointing the tip.

I'm going to merge and we will update the documentation.

Thanks for the PR @kfischer-okarin !