Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Junit XML as a linting result format #1989

Open
SyedAhkam opened this issue Mar 5, 2025 · 2 comments
Open

Add Junit XML as a linting result format #1989

SyedAhkam opened this issue Mar 5, 2025 · 2 comments

Comments

@SyedAhkam
Copy link

Hi, I had been using Spectral CLI for linting and been looking to switch to Redocly's linting solution. At my workplace we have a CI Job which lints our OpenAPI specs, stores the test results and report them to CircleCI if any issues are recognized.

Now the issue is that CircleCI only supports uploading test results in Junit XML format which sadly Redocly does not support, hence I am writing this issue.

Adding a new option for the --format and writing a backend for it would be the expected solution. I can't comment on specifics.

An alternative I've been looking into is to convert from checkstyle to junit on the fly from within my CI Job before uploading the test results.

@tatomyr
Copy link
Contributor

tatomyr commented Mar 5, 2025

You can also use the json output format as it's easier to work with.

@tatomyr tatomyr added the p3 label Mar 5, 2025
@SyedAhkam
Copy link
Author

You can also use the json output format as it's easier to work with.

Yeah.. but the JSON output is specific to each tool which means I would need to write a helper script which converts the results to structured Junit.

It would be so convenient if Redocly has first class support for Junit XML as its a de facto standard when it comes to sharing test results b/w tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants