-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ni/new-distros
* main: chore: update auto-generated files (#2237) feat(shell-api): add shardedDataDistribution to sh.status() MONGOSH-1326 (#2214) chore: update auto-generated files (#2235) feat(tests): Add individual evergreen test results with XUnit (#2227) chore: update auto-generated files (#2234) chore: rename service-provider-server and `CliServiceProvider` (#2232) chore: update auto-generated files (#2233) chore(deps): Add node-gyp version control across different distros MONGOSH-1891 (#2230) chore: update auto-generated files (#2231) fix(shell-api): Align database and collection aggregate functions MONGOSH-1868 (#2229)
- Loading branch information
Showing
76 changed files
with
1,918 additions
and
1,207 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ mongocryptd.pid | |
.sbom | ||
.nvm | ||
snapshot.blob | ||
.logs/* | ||
!.logs/empty.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!-- An empty test suite which is needed as not all tasks produce XUnit results and the current Evergreen setup always expects some file to be uploaded --> | ||
<testsuite name="empty" tests="0" failures="0" errors="0" skipped="0" timestamp="Fri, 18 Oct 2024 09:21:06 GMT" time="8.907"> | ||
</testsuite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { reporters } from 'mocha'; | ||
import type { MochaOptions, Runner } from 'mocha'; | ||
import path from 'path'; | ||
|
||
// Import the built-in reporters | ||
const Spec = reporters.Spec; | ||
const XUnit = reporters.XUnit; | ||
|
||
export class MochaReporter extends reporters.Base { | ||
constructor(runner: Runner, options: MochaOptions) { | ||
super(runner, options); | ||
const suiteName = process.env.TASK_NAME ?? path.basename(process.cwd()); | ||
|
||
new Spec(runner); | ||
|
||
runner.on('suite', (suite) => { | ||
if (suite.parent?.root) { | ||
suite.title = `${suiteName}__${suite.title}`; | ||
} | ||
}); | ||
|
||
new XUnit(runner, { | ||
reporterOptions: { | ||
suiteName, | ||
output: path.join(__dirname, '..', '..', '.logs', `${suiteName}.xml`), | ||
}, | ||
}); | ||
} | ||
} | ||
|
||
module.exports = MochaReporter; |
Oops, something went wrong.