fix(cli): add --base option to run test command

This commit is contained in:
Divlo committed 2021-06-30 15:23:58 +02:00
1 parent ede3e7526b
commit 996dcd89c3
3 files changed
+25 -8

No files matched your search

+6 -1
View File
@@ -39,12 +39,17 @@ export class RunTestCommand extends Command {
description: 'Run the tests for the Continuous Integration (CI).'
})
public base = Option.String('--base', {
description: 'Base of the current branch (usually master)'
})
async execute (): Promise<number> {
console.log()
try {
if (this.affected) {
const gitAffected = new GitAffected({
isContinuousIntegration: this.isContinuousIntegration
isContinuousIntegration: this.isContinuousIntegration,
base: this.base
})
const solutions = await gitAffected.getAffectedSolutions()
for (const solution of solutions) {