Skip to content

Commit

Permalink
feat(generators): add integration-test target for quarkus app generator
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Jul 29, 2023
1 parent 8294cc8 commit 872a546
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/gradle/src/generators/application/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ export default async function (
task: 'test',
},
},
'integration-test': {},
ktformat: {},
},
tags: normalizedOptions.parsedTags,
Expand Down Expand Up @@ -462,6 +463,13 @@ export default async function (
targets['build-image'] = {
executor: `${plugin}:quarkus-build-image`,
};

targets['integration-test'] = {
executor: `${plugin}:run-task`,
options: {
task: 'quarkusIntTest',
},
};
}

if (
Expand Down
8 changes: 8 additions & 0 deletions packages/maven/src/generators/application/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ export default async function (
},
dependsOn: ['build'],
},
'integration-test': {},
ktformat: {},
},
tags: normalizedOptions.parsedTags,
Expand Down Expand Up @@ -473,6 +474,13 @@ export default async function (
task: 'quarkus:dev',
keepItRunning: true,
};

targets['integration-test'] = {
executor: `${plugin}:run-task`,
options: {
task: 'integration-test',
},
};
}

if (
Expand Down

0 comments on commit 872a546

Please sign in to comment.