code-pushup / cli

A CLI to run all kinds of code quality measurements to align your team with company goals
https://code-pushup.dev
MIT License
253 stars 14 forks source link

Test results plugin #477

Open Tlacenka opened 9 months ago

Tlacenka commented 9 months ago

As a user, I want to be able to integrate my test suites into Code PushUp and aggregate the results in my report.

User story examples

Research

Acceptance criteria

Implementation details

Known issues

Tlacenka commented 4 months ago

Test results format

TL;DR: JUnit is the most commonly used (natively supported by all researched test frameworks). Screenshots may be attached to a test result inside attachments.

Common test results formats

Compatibility table

Framework JUnit xUnit NUnit JSON HTML Custom reporter support
Cypress yes (native) - - - - yes (mocha reporters)
Playwright yes (native) - - yes (native) yes (native) yes (reporters)
Jest yes (native) yes (jest-xunit package) yes (jest-nunit-reporter package) yes (jest-json-reporter package) yes (jest-html-reporter package) yes (npm packages)
Vitest yes (native) - - yes (native) yes (native) yes (npm packages)
Pytest yes (native) - yes (pytest-nunit plugin) yes (pytest-json plugin) yes (pytest-html plugin) yes (plugins)
.NET yes (native) yes (native) yes (native) yes (native) yes (native) yes (test loggers)