Skip to content

Commit 06a00ac

Browse files
committed
fix: coverage and report generation
1 parent eaddd72 commit 06a00ac

File tree

6 files changed

+32
-13
lines changed

6 files changed

+32
-13
lines changed

nx.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
},
3131
"@nx/eslint:lint": {
3232
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
33-
"cache": true,
34-
"outputs": ["{options.outputFile}"]
33+
"cache": true
3534
},
3635
"@angular-devkit/build-angular:application": {
3736
"cache": true,

packages/examples/lumberjack-app/project.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
"coverageReporters": ["lcovonly", "text-summary"],
8989
"coverage": true
9090
}
91-
}
91+
},
92+
"defaultConfiguration": "coverage"
9293
},
9394
"serve-static": {
9495
"executor": "@nx/web:file-server",
@@ -98,6 +99,16 @@
9899
"staticFilePath": "dist/packages/examples/lumberjack-app/browser",
99100
"spa": true
100101
}
102+
},
103+
"lint": {
104+
"outputs": ["{workspaceRoot}/reports/packages/examples/lumberjack-app/lint/report.json"],
105+
"configurations": {
106+
"report": {
107+
"format": "json",
108+
"output-file": "../../../reports/packages/examples/lumberjack-app/lint/report.json"
109+
}
110+
},
111+
"defaultConfiguration": "report"
101112
}
102113
}
103114
}

packages/internal/console-driver/test-util/project.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@
2121
"coverageReporters": ["lcovonly", "text-summary"],
2222
"coverage": true
2323
}
24-
}
24+
},
25+
"defaultConfiguration": "coverage"
2526
},
2627
"lint": {
28+
"outputs": ["{workspaceRoot}/reports/packages/internal/console-driver/test-util/lint/report.json"],
2729
"configurations": {
2830
"report": {
2931
"format": "json",
30-
"output-file": "reports/packages/internal/console-driver/test-util/lint/report.json"
32+
"output-file": "../../../../reports/packages/internal/console-driver/test-util/lint/report.json"
3133
}
32-
}
34+
},
35+
"defaultConfiguration": "report"
3336
}
3437
}
3538
}

packages/internal/test-util/project.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@
2121
"coverageReporters": ["lcovonly", "text-summary"],
2222
"coverage": true
2323
}
24-
}
24+
},
25+
"defaultConfiguration": "coverage"
2526
},
2627
"lint": {
28+
"outputs": ["{workspaceRoot}/reports/packages/internal/test-util/lint/report.json"],
2729
"configurations": {
2830
"report": {
2931
"format": "json",
30-
"output-file": "reports/packages/internal/test-util/lint/report.json"
32+
"output-file": "../../../reports/packages/internal/test-util/lint/report.json"
3133
}
32-
}
34+
},
35+
"defaultConfiguration": "report"
3336
}
3437
}
3538
}

packages/ngworker/lumberjack/project.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,18 @@
6868
"coverageReporters": ["lcovonly", "text-summary"],
6969
"coverage": true
7070
}
71-
}
71+
},
72+
"defaultConfiguration": "coverage"
7273
},
7374
"lint": {
75+
"outputs": ["{workspaceRoot}/reports/packages/ngworker/lumberjack/lint/report.json"],
7476
"configurations": {
7577
"report": {
7678
"format": "json",
77-
"output-file": "reports/packages/ngworker/lumberjack/lint/report.json"
79+
"output-file": "../../../reports/packages/ngworker/lumberjack/lint/report.json"
7880
}
79-
}
81+
},
82+
"defaultConfiguration": "report"
8083
},
8184
"version": {
8285
"dependsOn": ["build"],

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Project
22
sonar.organization=ngworker
33
sonar.projectKey=ngworker_lumberjack
4-
sonar.projectVersion=15.x
4+
sonar.projectVersion=19.x
55
# display name
66
sonar.projectName=lumberjack
77

0 commit comments

Comments
 (0)