Skip to content

Commit 0a14ca2

Browse files
committed
Change profile name
1 parent 264b736 commit 0a14ca2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/CodeGenerationController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ object CodeGenerationController {
155155
UtTestsDialogProcessor.updateIndicator(indicator, UtTestsDialogProcessor.ProgressRange.SARIF, "Start tests with coverage", 0.95)
156156
RunConfigurationHelper.runTestsWithCoverage(model, testFilesPointers)
157157
}
158-
runInspectionsIfNeeded(model.project, srcClassPathToSarifReport) // TODO
159158
proc.forceTermination()
160159
UtTestsDialogProcessor.updateIndicator(indicator, UtTestsDialogProcessor.ProgressRange.SARIF, "Start tests with coverage", 1.0)
160+
runInspectionsIfNeeded(model.project, srcClassPathToSarifReport)
161161
}
162162
}
163163
}

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/inspection/UnitTestBotInspectionContext.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class UnitTestBotInspectionContext(
3737
*/
3838
override fun getCurrentProfile(): InspectionProfileImpl {
3939
val supplier = InspectionToolsSupplier.Simple(listOf(globalInspectionToolWrapper))
40-
return InspectionProfileImpl("UnitTestBotProfile", supplier, BASE_PROFILE)
40+
return InspectionProfileImpl("UnitTestBot", supplier, BASE_PROFILE)
4141
}
4242

4343
override fun close(noSuspiciousCodeFound: Boolean) {

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/sarif/SarifReportIdea.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,18 @@ object SarifReportIdea {
4141
}
4242
val reportFilePath = sarifReportsPath.resolve("${classFqnToPath(classFqn)}Report.sarif")
4343

44+
var resultSarifReport = Sarif.empty()
4445
IntelliJApiHelper.run(IntelliJApiHelper.Target.THREAD_POOL, indicator) {
4546
try {
4647
val sarifReportAsJson = proc.writeSarif(reportFilePath, testSetsId, generatedTestsCode, sourceFinding)
47-
return Sarif.fromJson(sarifReportAsJson)
48+
resultSarifReport = Sarif.fromJson(sarifReportAsJson)
4849
} catch (e: Exception) {
4950
logger.error { e }
5051
} finally {
5152
reportsCountDown.countDown()
5253
}
5354
}
55+
return resultSarifReport
5456
}
5557
}
5658

0 commit comments

Comments
 (0)