https://github.com/dadav/xray2junit
Convert xray reports to junit reports.
https://github.com/dadav/xray2junit
Last synced: about 1 year ago
JSON representation
Convert xray reports to junit reports.
- Host: GitHub
- URL: https://github.com/dadav/xray2junit
- Owner: dadav
- License: gpl-3.0
- Created: 2023-03-12T18:14:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T20:10:52.000Z (over 3 years ago)
- Last Synced: 2025-02-06T16:57:55.458Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xray2junit
[](https://github.com/dadav/xray2junit/releases)
[](https://github.com/dadav/xray2junit/blob/main/LICENSE)

This program converts the output of `jfrog scan --format simple-json` to
a junit report which can be used in gitlab-ci to display the results there.
## install
```bash
# Install to ~/.cargo/bin
cargo install --git https://github.com/dadav/xray2junit.git
```
## options
```bash
Options:
-i, --input File to be processed [default: -]
-o, --output File to save the result [default: -]
-d, --debug Turn debugging information on
-h, --help Print help
-V, --version Print version
```
## usage
```bash
jfrog scan --format simple-json . | xray2junit
```
Best used with gitlab-ci like this:
```yaml
---
xray-job:
before_script: |
cargo install --git https://github.com/dadav/xray2junit.git
export PATH=$PATH:~/.cargo/bin
script: jfrog scan --format simple-json . | xray2junit -o report.xml
artifacts:
when: always
paths:
- report.xml
reports:
junit: report.xml
```