sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.45k stars 482 forks source link

sage -t : Write report in JUnitXML format #33232

Open mkoeppe opened 2 years ago

mkoeppe commented 2 years ago

It is a standard format for test reporting, supported by major tools; for example:

To write:

To read:

Why we want it:

1) Make patchbot failure reporting useful when base already has some failures

CC: @fchapoton @tobiasdiez @vbraun

Component: doctest framework

Issue created by migration from https://trac.sagemath.org/ticket/33232

tobiasdiez commented 2 years ago
comment:1

Pytest can be used to extract tests from an arbitrary file using the pytest_collect_file hook, see for an example to parse Yaml files. Thus it would be an idea to this to plugin sage's custom doctest discovery/format and profit from pytest JUnitXml format among many other output formats.

mkoeppe commented 2 years ago
comment:2

Yes, sounds like a good approach