gfoidl / trx2junit

Transforms XML from trx-Testresults to JUnit-Testresults / trx to JUnit XML and the other way round
MIT License
70 stars 17 forks source link

Created standalone package of Core-logic and dropped .NET Core 2.1 #93

Closed gfoidl closed 2 years ago

gfoidl commented 2 years ago

Fixes https://github.com/gfoidl/trx2junit/issues/92

gfoidl commented 2 years ago

Ah, CI means

##[warning]No test result files matching tests/trx2junit.Tests/TestResults/*.trx were found.

🙈

gfoidl commented 2 years ago

@dstahl-axion here's my stab on it.

Please try it with the instructions below, and tell me if it fits your needs. Then I'd like to create a real release of it.

For the package see trx2junit.Core v2.0.0-preview-1 The feed is https://pkgs.dev.azure.com/gh-gfoidl/github-Projects/_packaging/gfoidl-public/nuget/v3/index.json (more info in the link above).

For the tool:

# deinstall current version
dotnet tool uninstall -g trx2junit

# install preview
dotnet tool install -g trx2junit --version 2.0.0-preview-1 --add-source https://pkgs.dev.azure.com/gh-gfoidl/github-Projects/_packaging/gfoidl-public/nuget/v3/index.json

A bit a description is in the ReadMe of the PR.

dstahl-axion commented 2 years ago

@gfoidl Wow that was fast!

I've just tested these scenarios on two TRX files. One created from .net framework test assemblies and one created from .net5 test assemblies. I ran the latest published tool, the pre-release tool, and my own code using your trx2junit.Core nuget package.

All produced the same output after the same runtime.

This works exactly as I need it to and solves my needs perfectly. Thanks so much for the quick implementation!

gfoidl commented 2 years ago

You're welcome 😄

Thanks for confirmation, so I'm going to make the official release.