From d430a8eedc716968719c256c7ebb75ec0bc4ff55 Mon Sep 17 00:00:00 2001 From: James Pogran Date: Thu, 21 Nov 2024 14:41:40 -0500 Subject: [PATCH] integration test coverage --- .vscode-test.mjs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.vscode-test.mjs b/.vscode-test.mjs index e477712057..4a300a33f0 100644 --- a/.vscode-test.mjs +++ b/.vscode-test.mjs @@ -27,9 +27,28 @@ const configs = testSuiteFolderNames.map((folderName) => ({ color: true, timeout: 100000, require: ['./out/test/mockSetup.js'], // mocks are shared for all test suites + // reporter: path.join(__dirname, '.mocha-reporter.js'), + reporter: 'json', // "lcov" also generates HTML + reporterOptions: { + jsonReporterOptions: { + output: '.integration-tests.json', + }, + }, }, })); -const config = defineConfig(configs); +const config = defineConfig({ + tests: configs, + coverage: { + includeAll: true, + exclude: [`./out`], + reporter: 'json', // "lcov" also generates HTML + reporterOptions: { + jsonReporterOptions: { + output: '.integration-tests.json', + }, + }, + }, +}); export default config;