Skip to content

added junit xml export function and parameter#83

Open
dmnk wants to merge 2 commits into
SigmaHQ:mainfrom
dmnk:feat-junitxml-export
Open

added junit xml export function and parameter#83
dmnk wants to merge 2 commits into
SigmaHQ:mainfrom
dmnk:feat-junitxml-export

Conversation

@dmnk

@dmnk dmnk commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

closes #81

@thomaspatzke thomaspatzke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add at least one corresponding test case.

@thomaspatzke

Copy link
Copy Markdown
Member

@copilot add a test for the new feature.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a JUnit XML export mode to the sigma check CLI command to support CI/CD integration (Issue #81).

Changes:

  • Added --junitxml option to write check results as JUnit XML to a specified file.
  • Introduced JUnit XML report generation (generate_junit_report) and collection of validation/parsing/condition issues into report entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sigma/cli/check.py Outdated
Comment thread sigma/cli/check.py
Comment on lines +202 to +206
if junitxml:
junit_results.append({
"rule_name": rule_name, "file_path": file_path, "status": "failed",
"issue_type": e.__class__.__name__, "severity": "condition_error", "description": error
})
Comment thread sigma/cli/check.py
Comment on lines +108 to +112
@click.option(
"--junitxml",
type=click.Path(path_type=pathlib.Path),
help="Output results in JUnit XML format to the specified file."
)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add junit output format for check results

4 participants