File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
utbot-gradle/src/main/kotlin/org/utbot/gradle/plugin/wrappers
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin
utbot-maven/src/main/kotlin/org/utbot/maven/plugin/wrappers Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class GradleProjectWrapper(
59
59
val sarifReportFile: File by lazy {
60
60
Paths .get(
61
61
generatedSarifDirectory.path,
62
- " ${project.name} -utbot .sarif"
62
+ " ${project.name} Report .sarif"
63
63
).toFile().apply {
64
64
createNewFileWithParentDirectories()
65
65
}
Original file line number Diff line number Diff line change @@ -97,10 +97,10 @@ class SourceSetWrapper(
97
97
98
98
/* *
99
99
* Creates and returns a file for a future SARIF report.
100
- * For example, ".../main/com/qwerty/Main-utbot .sarif".
100
+ * For example, ".../main/com/qwerty/MainReport .sarif".
101
101
*/
102
102
private fun createSarifReportFile (classFqn : String ): File {
103
- val relativePath = " ${sourceSet.name} /${classFqnToPath(classFqn)} -utbot .sarif"
103
+ val relativePath = " ${sourceSet.name} /${classFqnToPath(classFqn)} Report .sarif"
104
104
val absolutePath = Paths .get(parentProject.generatedSarifDirectory.path, relativePath)
105
105
return absolutePath.toFile().apply { createNewFileWithParentDirectories() }
106
106
}
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ object TestGenerator {
103
103
.toList()
104
104
105
105
val mergedReport = SarifReport .mergeReports(sarifReports)
106
- val mergedReportPath = sarifReportsPath.resolve(" ${model.project.name} -utbot-merged .sarif" )
106
+ val mergedReportPath = sarifReportsPath.resolve(" ${model.project.name} Report .sarif" )
107
107
mergedReportPath.toFile().writeText(mergedReport)
108
108
109
109
// notifying the user
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ object SarifReportIdea {
22
22
// building the path to the report file
23
23
val classFqn = testCases.firstOrNull()?.method?.clazz?.qualifiedName ? : return
24
24
val sarifReportsPath = model.testModule.getOrCreateSarifReportsPath(model.testSourceRoot)
25
- val reportFilePath = sarifReportsPath.resolve(" ${classFqnToPath(classFqn)} -utbot .sarif" )
25
+ val reportFilePath = sarifReportsPath.resolve(" ${classFqnToPath(classFqn)} Report .sarif" )
26
26
27
27
// creating report related directory
28
28
VfsUtil .createDirectoryIfMissing(reportFilePath.parent.toString())
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ fun Module.getOrCreateTestResourcesPath(testSourceRoot: VirtualFile?): Path {
74
74
*/
75
75
fun Module.getOrCreateSarifReportsPath (testSourceRoot : VirtualFile ? ): Path {
76
76
val testResourcesPath = this .getOrCreateTestResourcesPath(testSourceRoot)
77
- return " $testResourcesPath /sarif/" .toPath()
77
+ return " $testResourcesPath /utbot- sarif-report /" .toPath()
78
78
}
79
79
80
80
/* *
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class MavenProjectWrapper(
51
51
val sarifReportFile: File by lazy {
52
52
Paths .get(
53
53
generatedSarifDirectory.path,
54
- " ${mavenProject.name} -utbot .sarif"
54
+ " ${mavenProject.name} Report .sarif"
55
55
).toFile().apply {
56
56
createNewFileWithParentDirectories()
57
57
}
@@ -131,10 +131,10 @@ class MavenProjectWrapper(
131
131
132
132
/* *
133
133
* Creates and returns a file for a future SARIF report.
134
- * For example, ".../main/com/qwerty/Main-utbot .sarif".
134
+ * For example, ".../main/com/qwerty/MainReport .sarif".
135
135
*/
136
136
private fun createSarifReportFile (classFqn : String ): File {
137
- val relativePath = " ${PathUtil .classFqnToPath(classFqn)} -utbot .sarif"
137
+ val relativePath = " ${PathUtil .classFqnToPath(classFqn)} Report .sarif"
138
138
val absolutePath = Paths .get(generatedSarifDirectory.path, relativePath)
139
139
return absolutePath.toFile().apply { createNewFileWithParentDirectories() }
140
140
}
You can’t perform that action at this time.
0 commit comments