Skip to content

Commit

Permalink
perf-test support: added unstructured dump of SQL queries from listener
Browse files Browse the repository at this point in the history
(cherry picked from commit f852353)

# Conflicts:
#	repo/repo-sql-impl-test/src/test/java/com/evolveum/midpoint/repo/sql/BaseSQLRepoTest.java
#	repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractIntegrationTest.java
  • Loading branch information
virgo47 committed May 20, 2021
1 parent 581a418 commit aafce7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ public TestMonitor createTestMonitor() {
queryListener.clear();
return super.createTestMonitor()
.addReportCallback(TestReportUtil::reportPerfData)
.addReportCallback(SqlRepoTestUtil.createReportCallback(queryListener));
.addReportCallback(SqlRepoTestUtil.reportCallbackQuerySummary(queryListener))
.addReportCallback(SqlRepoTestUtil.reportCallbackQueryList(queryListener));
}

protected boolean isUsingH2() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ public TestMonitor createTestMonitor() {

return super.createTestMonitor()
.addReportCallback(TestReportUtil::reportPerfData)
.addReportCallback(SqlRepoTestUtil.createReportCallback(queryListener));
.addReportCallback(SqlRepoTestUtil.reportCallbackQuerySummary(queryListener))
.addReportCallback(SqlRepoTestUtil.reportCallbackQueryList(queryListener));
}

protected TracingProfileType getTestMethodTracingProfile() {
Expand Down

0 comments on commit aafce7f

Please sign in to comment.