mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-27 12:02:44 +00:00
test: add unit tests to pipeline
This commit is contained in:
@@ -2,10 +2,8 @@
|
||||
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(' ')}`));
|
||||
console.log(await promisify(exec)(`cobertura-merge -o ./coverage.xml ${args.join(' ')}`));
|
||||
|
||||
Reference in New Issue
Block a user