Skip to content

Commit

Permalink
[radler] Fix running perf tests from dev build (locally)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: a7199987434f1d0bfd55e1d608536b9085dc3548
  • Loading branch information
Smertig authored and intellij-monorepo-bot committed Feb 14, 2025
1 parent 69f36d0 commit 8a84898
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ package com.intellij.ide.starter
import com.intellij.ide.starter.ide.IDETestContext
import com.intellij.ide.starter.models.TestCase
import com.intellij.ide.starter.runner.Starter
import com.intellij.openapi.application.PathManager
import kotlin.io.path.Path
import kotlin.io.path.absolutePathString
import kotlin.io.path.exists

fun IDETestContext.disableCLionTestIndexing() =
applyVMOptionsPatch { this.addSystemProperty("cidr.disable.test.indexing", true) }
Expand All @@ -24,6 +28,12 @@ fun getCLionContext(testName: String, testCase: TestCase<*>): IDETestContext {
.setMemorySize(4096)
.applyVMOptionsPatch {
if (isRadler) {
// Required for local runs
val backendPath = Path(PathManager.getHomePath(), "dotnet", "Bin.RiderBackend")
if (backendPath.exists()) {
withEnv("RESHARPER_HOST_BIN", backendPath.absolutePathString())
}

// Enable performance watcher for backend
addSystemProperty("rider.backend.performance.watcher.isEnabled", "true")

Expand Down

0 comments on commit 8a84898

Please sign in to comment.