A custom mochajs reporter is used in https://confluence.atlassian.com/bitbucket/test-reporting-in-pipelines-939708543.html while it ships now with an xUnit one https://mochajs.org/#xunit