Skip to content

Add junit xml upload#204

Open
FScholPer wants to merge 4 commits into
mainfrom
add_junit_xml_upload
Open

Add junit xml upload#204
FScholPer wants to merge 4 commits into
mainfrom
add_junit_xml_upload

Conversation

@FScholPer

Copy link
Copy Markdown
Contributor

Add a junit xml upload of all tests which were executed to later on test which tests do have requirements linkage

Frank Scholter Peres frank.scholter_peres@mercedes-benz.com, Mercedes-Benz Tech Innovation GmbH
Provider Information

@github-actions

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

@4og

4og commented May 27, 2026

Copy link
Copy Markdown
Member

For this to work, the docs generation job need to be in the same workflow with the build jobs and the jobs should depend on each other. Or the docs workflow uses the workflow_run trigger. Here is an example: https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#using-data-from-the-triggering-workflow

I'm not sure what approach is better. I need to think about it.

@FScholPer

Copy link
Copy Markdown
Contributor Author

hm I will check and make a proposal

@MaximilianSoerenPollak

Copy link
Copy Markdown
Contributor

You probably want to also change the folder you upload this to.
Take a look at the Docs-As-Code approach that uploads the tests to a tests-report folder. That one is also scanned by the source_code_linker, and has not a chance to get overwritten or something by bazel.

Here the Link to it

And yes, if you want the links displayed in the documentation it needs to be run in the same workflow.
Here an example

We basically let the tests from another Workflow run in the previous step and then consume the uploaded artifact in the next step.

@4og

4og commented Jun 18, 2026

Copy link
Copy Markdown
Member

@MaximilianSoerenPollak Does docs-as-code support multiple input test reports (for example from QNX and from Linux jobs)? In such case one test may appear several times.

@MaximilianSoerenPollak

Copy link
Copy Markdown
Contributor

@MaximilianSoerenPollak Does docs-as-code support multiple input test reports (for example from QNX and from Linux jobs)? In such case one test may appear several times.

Each testcase in each test.xml that you provide it will be parsed and created.
So if there are multiple ones (one QNX & one from Linux) it will be create one for each.
I would say this is intended behaviour as you want to have knowledge of both executions?

If this is not wanted one solution would be to only copy one of the tests into the folder that is parsed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants