Open djonasdev opened 4 years ago
@dojo90 Take a look at this issue which I opened with GitLab. Their junit xml parser seems to de-duplicate test results that are similar / identical. Not sure why they would do that, but I think that is what is happening here.
https://gitlab.com/gitlab-org/gitlab/issues/31975
That said, where is the test data portion of the class name in the TRX file coming from? Is it from an xunit data fixture?
Haprotec.Customer.Foo.Model.Workstation.WorkstationProcessTests.ValidateTest(testData: ValidationTestData { ExpectedResult = RequiredProgramMissing, Process = WorkstationProcess { NumberOfStations = 2, Process = [...] }, TestName = "required program is empty string" })
After I integrated the library, I noticed the following oddities:
I get only 2 tests displayed instead of 13.
If I use the default
--logger "trx;LogFileName=testreport.trx" statement and convert the result with
trx2junit` (https://github.com/gfoidl/trx2junit) I get the correct result shown in gitlab.junit.testlogger
gitlab pipeline
junit.testlogger result file
trx logger in combination with trx2junit (https://github.com/gfoidl/trx2junit)
gitlab pipeline
trx output file
converted xml file from trx2junit