Skip to content

Commit 82f5fff

Browse files
committed
Use -R in place of -p when ScalaTest 2.0+ is being used.
1 parent 46b2bce commit 82f5fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLaunchDelegate.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class ScalaTestLaunchDelegate extends AbstractJavaLaunchConfigurationDelegate {
116116
loader.loadClass("org.scalatest.tools.SocketReporter")
117117
ScalaTestPlugin.asyncShowTestRunnerViewPart(launch, configuration.getName, configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""))
118118
val port = ScalaTestPlugin.listener.getPort
119-
getProgramArguments(configuration) + " " + stArgs + " -oW -k localhost " + port
119+
getProgramArguments(configuration) + " " + stArgs.replaceAll("-p ", "-R ") + " -oW -k localhost " + port // replace all -p with -R if it is ScalaTest 2.0+
120120
}
121121
catch {
122122
case e: Throwable =>

0 commit comments

Comments
 (0)