Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions code-pushup.preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,10 @@ export const coverageCoreConfigNx = async (
projectName?: string,
): Promise<CoreConfig> => {
const targetNames = ['unit-test', 'int-test'];
const targetArgs = ['-t', ...targetNames];
return {
plugins: [
await coveragePlugin({
coverageToolCommand: {
command: 'npx',
args: projectName
? ['nx', 'run-many', '-p', projectName, ...targetArgs]
: ['nx', 'run-many', ...targetArgs],
},
// We do not need to run a coverageToolCommand. This is handled over the Nx task graph.
reports: projectName
? [
{
Expand Down
13 changes: 12 additions & 1 deletion project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@
"targets": {
"code-pushup-js-packages": {},
"code-pushup-lighthouse": {},
"code-pushup-coverage": {},
"code-pushup-coverage": {
"dependsOn": [
{
"target": "unit-test",
"projects": "*"
},
{
"target": "int-test",
"projects": "*"
}
]
},
"code-pushup-eslint": {},
"code-pushup-jsdocs": {},
"code-pushup-typescript": {},
Expand Down
Loading