Skip to content

Commit 405d66e

Browse files
authored
Merge pull request #13 from scalatest/feature-3.2.0.0
Release 3.2.0.0
2 parents f678f0d + 2ac17df commit 405d66e

File tree

8 files changed

+22
-15
lines changed

8 files changed

+22
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
target/
44
.idea/
55
test-output/
6+
_site/

build.sbt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ developers := List(
2323
)
2424
)
2525

26-
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.11", "2.13.2")
26+
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.11", "2.13.2", "0.24.0")
2727

2828
libraryDependencies ++= Seq(
2929
"org.scalatest" %% "scalatest-core" % "3.2.0",
@@ -90,6 +90,12 @@ pomIncludeRepository := { _ => false }
9090

9191
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
9292

93-
pgpSecretRing := file((Path.userHome / ".gnupg" / "secring.gpg").getAbsolutePath)
94-
95-
pgpPassphrase := None
93+
pomExtra := (
94+
<scm>
95+
<url>https://github.com/scalatest/scalatestplus-selenium</url>
96+
<connection>scm:git:git@github.com:scalatest/scalatestplus-selenium.git</connection>
97+
<developerConnection>
98+
scm:git:git@github.com:scalatest/scalatestplus-selenium.git
99+
</developerConnection>
100+
</scm>
101+
)

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.2.8
1+
sbt.version=1.3.12

project/plugins.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
2-
3-
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.2.2")
1+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
42

53
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.4")
4+
5+
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.4.1")

src/main/scala/org/scalatestplus/testng/Resources.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ private[testng] object Resources {
3838

3939
def iconPlusShortName(param0: Any, param1: Any): String = makeString("iconPlusShortName", Array(param0, param1))
4040

41-
def rawIconPlusShortName: String = resourceBundle.getString("iconPlusShortName")
41+
def rawIconPlusShortName(): String = resourceBundle.getString("iconPlusShortName")
4242

4343
def testNotFound(param0: Any): String = makeString("testNotFound", Array(param0))
4444

45-
def rawTestNotFound: String = resourceBundle.getString("testNotFound")
45+
def rawTestNotFound(): String = resourceBundle.getString("testNotFound")
4646

4747
def testNGConfigFailed(): String = resourceBundle.getString("testNGConfigFailed")
4848

49-
def rawTestNGConfigFailed: String = resourceBundle.getString("testNGConfigFailed")
49+
def rawTestNGConfigFailed(): String = resourceBundle.getString("testNGConfigFailed")
5050

5151
}

src/main/scala/org/scalatestplus/testng/TestNGHelper.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private[testng] object TestNGHelper {
3939
val decodedTestText = scala.reflect.NameTransformer.decode(testText)
4040
val formattedText =
4141
if (includeIcon) {
42-
val testSucceededIcon = Resources.testSucceededIconChar
42+
val testSucceededIcon = Resources.testSucceededIconChar()
4343
(" " * (if (level == 0) 0 else (level - 1))) + Resources.iconPlusShortName(testSucceededIcon, decodedTestText)
4444
}
4545
else {

src/main/scala/org/scalatestplus/testng/TestNGSuiteLike.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ trait TestNGSuiteLike extends Suite { thisSuite =>
356356
override def onTestFailure(result: ITestResult): Unit = {
357357
val throwableOrNull = result.getThrowable
358358
val throwable = if (throwableOrNull != null) Some(throwableOrNull) else None
359-
val message = if (throwableOrNull != null && throwableOrNull.getMessage != null) throwableOrNull.getMessage else Resources.testNGConfigFailed
359+
val message = if (throwableOrNull != null && throwableOrNull.getMessage != null) throwableOrNull.getMessage else Resources.testNGConfigFailed()
360360
val testName = result.getName + params(result)
361361
val formatter = getIndentedTextForTest(testName, 1, true)
362362
val payload =
@@ -379,7 +379,7 @@ trait TestNGSuiteLike extends Suite { thisSuite =>
379379
override def onConfigurationFailure(result: ITestResult): Unit = {
380380
val throwableOrNull = result.getThrowable
381381
val throwable = if (throwableOrNull != null) Some(throwableOrNull) else None
382-
val message = if (throwableOrNull != null && throwableOrNull.getMessage != null) throwableOrNull.getMessage else Resources.testNGConfigFailed
382+
val message = if (throwableOrNull != null && throwableOrNull.getMessage != null) throwableOrNull.getMessage else Resources.testNGConfigFailed()
383383
val formatter = formatterForSuiteAborted(thisSuite, message)
384384
report(SuiteAborted(tracker.nextOrdinal(), message, thisSuite.suiteName, thisSuite.getClass.getName, Some(thisSuite.getClass.getName), throwable, None, formatter, Some(SeeStackDepthException)))
385385
status.setFailed()

src/test/scala/org/scalatestplus/testng/TestNGSuiteSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import org.scalatestplus.testng.SharedHelpers.EventRecordingReporter
5353
// when
5454
val status = new StatefulStatus
5555
(new FailureTestNGSuite()).runTestNG(testReporter, new Tracker, status)
56-
status.setCompleted
56+
status.setCompleted()
5757

5858
// then
5959
testReporter.eventsReceived.lastOption match {

0 commit comments

Comments
 (0)