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

https://github.com/andtechstudios/raccoon

Convert Unity test results to GitLab test reports
https://github.com/andtechstudios/raccoon

cd ci gitlab junit nuget

Last synced: about 1 month ago
JSON representation

Convert Unity test results to GitLab test reports

Awesome Lists containing this project

README

        

## Setup

### Prerequisites
* [.NET Core](https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools)
* Make sure [NuGet Gallery](https://nuget.org) is registered as a source in your NuGet configuration (it is by default).

```shell
$ dotnet nuget list source
Registered Sources:
1. nuget.org [Enabled]
https://api.nuget.org/v3/index.json
```

### Installation
1. Use `dotnet tool install`.
```shell
$ dotnet tool install --global Andtech.Raccoon
```

### Uninstallation
1. Use `dotnet tool uninstall`.
```shell
$ dotnet tool uninstall --global Andtech.Raccoon
```

## Usage
```
raccoon [-o|--output ]
```

| Parameter | Description | Remarks |
| --- | --- | --- |
| `file` | The XML file containing the test results. | If omitted, XML will be read from `stdin`. |
| `-o`
`--output` | The file to write to. | If omitted, the converted XML will be printed to `stdout`. |

## Examples
Suppose `Unity.exe` is in `PATH`. Run the following to create test results at `results.xml`:

```
$ Unity.exe -projectPath MyProject -runTests -testResults results.xml
```

Now use `raccoon` to convert the XML:

```
$ raccoon results.xml




Expected: 19; But was: 21;


System.Exception : Exception of type 'System.Exception' was thrown.

```

Or `cat` XML test results to `raccoon`.

```
$ cat results.xml | raccoon



...

```

`raccoon` can also write directly to a file.

```
$ cat results.xml | raccoon --output results-gitlab.xml
```