mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-27 12:02:44 +00:00
feat: update tests
feat: update tests feat: update tests
This commit is contained in:
11
coverage.mjs
Executable file
11
coverage.mjs
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env node
|
||||
import {promisify} from 'node:util';
|
||||
import {glob} from 'glob';
|
||||
import {exec} from 'node:child_process';
|
||||
import {mkdir} from 'fs/promises';
|
||||
|
||||
const files = await glob('./*/*/coverage/cobertura-coverage.xml');
|
||||
const args = files.map(it => `${it.split('/', 2)[1]}='${it}'`);
|
||||
await mkdir('./coverage');
|
||||
|
||||
console.log(await promisify(exec)(`cobertura-merge -o ./coverage/cobertura-coverage.xml ${args.join(' ')}`));
|
||||
Reference in New Issue
Block a user