Skip to content

Commit

Permalink
Merge pull request #40 from OWASP/print-table
Browse files Browse the repository at this point in the history
Print table for all formats
  • Loading branch information
dmdhrumilmistry authored Jan 24, 2024
2 parents a544dcf + 62abf72 commit ffe0535
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/offat/tester/tester_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,17 @@ def generate_and_run_tests(api_parser: OpenAPIParser, regex_pattern: Optional[st
)

# save file to output if output flag is present
if output_file_format != 'table':
ReportGenerator.generate_report(
results=results,
report_format=output_file_format,
report_path=output_file,
)

ReportGenerator.generate_report(
results=results,
report_format=output_file_format,
report_path=output_file,
report_format='table',
report_path=None,
)

return results

0 comments on commit ffe0535

Please sign in to comment.