An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# xray2junit

[![Latest Version](https://img.shields.io/github/v/release/dadav/xray2junit?display_name=tag&label=Latest%20version)](https://github.com/dadav/xray2junit/releases)
[![License](https://img.shields.io/github/license/dadav/xray2junit?color=green)](https://github.com/dadav/xray2junit/blob/main/LICENSE)

xray2junit demo

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
```