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
- Host: GitHub
- URL: https://github.com/andtechstudios/raccoon
- Owner: andtechstudios
- License: bsd-3-clause
- Created: 2021-07-24T05:08:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-24T00:03:33.000Z (about 2 years ago)
- Last Synced: 2025-02-06T16:58:57.014Z (3 months ago)
- Topics: cd, ci, gitlab, junit, nuget
- Language: C#
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```