zallek / swagger-diff

Compute the diff between two swagger API specifications.
https://zallek.github.io/swagger-diff/
58 stars 30 forks source link

Add XML output format to support CI test summary #21

Open simonwilbert opened 7 years ago

simonwilbert commented 7 years ago

allow swagger-diff to output a file which CI systems can parse to get test summary

Circle - https://circleci.com/docs/test-metadata/

Like "Your build ran 832 tests with 4 breaking API changes and 3 Warnings listed below"

zallek commented 7 years ago

yeh that could be interesting. Currently, there are 2 output modes either "raw" or "json". We could add a "junit-xml"

https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd

So that's means that it needs to both output to stdout warnings/errors and also write to a file the junit test results.

that should be possible quite easily:

Do you think you could create a PR for that it would be great :)