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(
5959 val sarifReportFile: File by lazy {
6060 Paths .get(
6161 generatedSarifDirectory.path,
62- " ${project.name} -utbot .sarif"
62+ " ${project.name} Report .sarif"
6363 ).toFile().apply {
6464 createNewFileWithParentDirectories()
6565 }
Original file line number Diff line number Diff line change @@ -97,10 +97,10 @@ class SourceSetWrapper(
9797
9898 /* *
9999 * 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".
101101 */
102102 private fun createSarifReportFile (classFqn : String ): File {
103- val relativePath = " ${sourceSet.name} /${classFqnToPath(classFqn)} -utbot .sarif"
103+ val relativePath = " ${sourceSet.name} /${classFqnToPath(classFqn)} Report .sarif"
104104 val absolutePath = Paths .get(parentProject.generatedSarifDirectory.path, relativePath)
105105 return absolutePath.toFile().apply { createNewFileWithParentDirectories() }
106106 }
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ object TestGenerator {
103103 .toList()
104104
105105 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" )
107107 mergedReportPath.toFile().writeText(mergedReport)
108108
109109 // notifying the user
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ object SarifReportIdea {
2222 // building the path to the report file
2323 val classFqn = testCases.firstOrNull()?.method?.clazz?.qualifiedName ? : return
2424 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" )
2626
2727 // creating report related directory
2828 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 {
7474 */
7575fun Module.getOrCreateSarifReportsPath (testSourceRoot : VirtualFile ? ): Path {
7676 val testResourcesPath = this .getOrCreateTestResourcesPath(testSourceRoot)
77- return " $testResourcesPath /sarif/" .toPath()
77+ return " $testResourcesPath /utbot- sarif-report /" .toPath()
7878}
7979
8080/* *
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class MavenProjectWrapper(
5151 val sarifReportFile: File by lazy {
5252 Paths .get(
5353 generatedSarifDirectory.path,
54- " ${mavenProject.name} -utbot .sarif"
54+ " ${mavenProject.name} Report .sarif"
5555 ).toFile().apply {
5656 createNewFileWithParentDirectories()
5757 }
@@ -131,10 +131,10 @@ class MavenProjectWrapper(
131131
132132 /* *
133133 * 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".
135135 */
136136 private fun createSarifReportFile (classFqn : String ): File {
137- val relativePath = " ${PathUtil .classFqnToPath(classFqn)} -utbot .sarif"
137+ val relativePath = " ${PathUtil .classFqnToPath(classFqn)} Report .sarif"
138138 val absolutePath = Paths .get(generatedSarifDirectory.path, relativePath)
139139 return absolutePath.toFile().apply { createNewFileWithParentDirectories() }
140140 }
You can’t perform that action at this time.
0 commit comments