sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.11k stars 1.27k forks source link

Mocha tests: Support JUnit reports #31627

Open umpox opened 2 years ago

umpox commented 2 years ago

Description

We started adding generated JUnit reports through mocha-junit-reporter in this PR: https://github.com/sourcegraph/sourcegraph/pull/28262

We had to revert it through https://github.com/sourcegraph/sourcegraph/pull/31626 because command output was being swallowed by the library. This meant it was particularly difficult to debug failing tests

We should work to fix this, and support generating these reports for Buildkite analytics

umpox commented 2 years ago

Note: We have also ran into issues as mocha-junit-reporter does not support parallel tests. We should consider migrating these tests to Jest. See this issue: https://github.com/sourcegraph/sourcegraph/issues/31630

github-actions[bot] commented 2 years ago

Heads up @jplahn @dan-mckean - the "team/repo-management" label was applied to this issue.