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
Reports json_report not working from command line execution[Bug] #554
Comments
The
The downside of using Robocop class directly in your Python script rather than using cli is that you need to handle cli arguments on your own (it can be workarounded though). What's your purpose? Depending in your needs maybe there is other option you could use or I could modify our code so it'll be possible ie to output issues in json format even from cli. |
Hey @bhirsz. What do you think about this issue? Are we going to add possibility to prepare JSON output from CLI? Sounds like a nice improvement, but overall no one was asking for this feature (apart from @ZephyrusMB). |
@mnojek But the bug mentioned that JsonOutput is mentioned in docs: https://robocop.readthedocs.io/en/stable/reports.html I think we need to update the docs so it's clear that it's internal report and can be only used if we're using Robocop python API. |
Are you able to
Are you able to add it? I haven't touched that part of the code. |
Yes, I will do it. |
I will redo the documentation soon for the json report. @Reddriver As for the version report it should work (from Robocop 2.1.0 onwards). Just tested it: |
I've just tested ,,version" in 2.1.0, it is OK. Something has changed, in version 2.0.2 it isn't working. Anyway it works now. |
It was only introduced in 2.1.0 that's why it doesn't work in 2.0.2 (compare https://robocop.readthedocs.io/en/2.0.2/reports.html and https://robocop.readthedocs.io/en/2.1.0/reports.html). |
well, I see now, thank you. |
What happened?
Hi,
Reading the doc seems i can get a report with the list of issues found in JSON format with the command
robocop -r json_report -o report.json file/to/parse.robot
.But seems this doesn't work and instead I get a file with the classic text line
"{source}:{line}:{col} [{severity}] {rule_id} {desc} ({name})"
Is it a bug or am i missing something? thank you very much
Operating System
10.0.19042
Robocop version
1.12.0
The text was updated successfully, but these errors were encountered: