Skip to content

Instantly share code, notes, and snippets.

@gkossakowski
Created October 14, 2013 20:51
Show Gist options
  • Save gkossakowski/6981978 to your computer and use it in GitHub Desktop.
Save gkossakowski/6981978 to your computer and use it in GitHub Desktop.
Scalatest 2.0.RC2 test failures with Scala 2.11.0 SNAPSHOT from October 14th, 2013
[info] *** 9 TESTS FAILED ***
[info] TestLocationFunctionPathFunSpec:
[info] A Spec
[info] - cancel !!! CANCELED !!! (0 milliseconds)
[info] org.scalatest.exceptions.TestCanceledException was thrown. (LocationFunctionSuiteProp.scala:491)
[info] OldDocSpec:
[info] A Doc with no include calls inside
[info] - should send the markup unindented out the door *** FAILED *** (52 milliseconds)
[info] TestFailedException was thrown during property evaluation. (OldDocSpec.scala:64)
[info] Message: "[]" did not equal "[This is a Title
[info] ===============
[info]
[info] This is a paragraph later...]"
[info] Location: (OldDocSpec.scala:78)
[info] Occurred at table row 0 (zero based, not counting headings), which had values (
[info] doc = org.scalatest.OldDocSpec$$anonfun$1$$anonfun$apply$1$$anon$1@77eac9a7
[info] )
[info] OldDocSpec:
[info] A Doc with one include call inside
[info] - should return an instance of the given suite to run in the list returned by nestedSuites *** FAILED *** (11 milliseconds)
[info] Vector() had size 0 instead of expected size 1 (OldDocSpec.scala:104)
[info] OldDocSpec:
[info] A Doc with two include calls inside
[info] - should return an instance of the given suite to run in the list returned by nestedSuites *** FAILED *** (0 milliseconds)
[info] Vector() had size 0 instead of expected size 2 (OldDocSpec.scala:132)
[info] OrSpec:
[info] An Or
[info] - can be created with the attempt helper method *** FAILED *** (15 milliseconds)
[info] Expected exception scala.NotImplementedError to be thrown, but no exception was thrown. (OrSpec.scala:288)
[info] TestCanceledExceptionSpec:
[info] The TestCanceledException
[info] - should give the proper line on assertResult(1) { 2 } !!! CANCELED !!! (0 milliseconds)
[info] assertResult(1) { 2 } didn't produce a TestCanceledException (TestCanceledExceptionSpec.scala:160)
[info] TestCanceledExceptionSpec:
[info] The TestCanceledException
[info] - should give the proper line on assertResult(1, "some message") { 2 } !!! CANCELED !!! (0 milliseconds)
[info] assertResult(1, "some message") { 2 } didn't produce a TestCanceledException (TestCanceledExceptionSpec.scala:177)
[info] TestCanceledExceptionSpec:
[info] The TestCanceledException
[info] - should give the proper line on intercept[IllegalArgumentException] {} !!! CANCELED !!! (1 millisecond)
[info] intercept[IllegalArgumentException] {} didn't produce a TestCanceledException (TestCanceledExceptionSpec.scala:192)
[info] TestCanceledExceptionSpec:
[info] The TestCanceledException
[info] - should give the proper line on intercept[IllegalArgumentException] { throw new RuntimeException } !!! CANCELED !!! (2 milliseconds)
[info] intercept[IllegalArgumentException] { throw new RuntimeException } didn't produce a TestCanceledException (TestCanceledExceptionSpec.scala:209)
[info] TestCanceledExceptionSpec:
[info] The TestCanceledException
[info] - should give the proper line on 1 should be === 2 !!! CANCELED !!! (1 millisecond)
[info] 1 should be === 2 didn't produce a TestCanceledException (TestCanceledExceptionSpec.scala:227)
[info] TestCanceledExceptionSpec:
[info] The TestCanceledException
[info] - should give the proper line on evaluating {} should produce [IllegalArgumentException] {} !!! CANCELED !!! (1 millisecond)
[info] evaluating {} should produce [IllegalArgumentException] didn't produce a TestCanceledException (TestCanceledExceptionSpec.scala:245)
[info] TestCanceledExceptionSpec:
[info] The TestCanceledException
[info] - should give the proper line on evaluating { throw new RuntimeException } should produce [IllegalArgumentException] !!! CANCELED !!! (17 milliseconds)
[info] evaluating { throw new RuntimeException } should produce [IllegalArgumentException] didn't produce a TestCanceledException (TestCanceledExceptionSpec.scala:262)
[info] InspectorShorthandsSpec:
[info] all
[info] - should throw TestFailedException with correct stack depth and message when 'not be null' failed *** FAILED *** (26 milliseconds)
[info] TestFailedException was thrown during property evaluation. (InspectorShorthandsSpec.scala:651)
[info] Message: Expected exception org.scalatest.exceptions.TestFailedException to be thrown, but no exception was thrown.
[info] Location: (InspectorShorthandsSpec.scala:664)
[info] Occurred at table row 14 (zero based, not counting headings), which had values (
[info] Fun = <function1>
[info] )
[info] FunSuiteSpec:
[info] A FunSuite
[info] - should throw a NotAllowedException if chosenStyles is defined and does not include FunSuite *** FAILED *** (23 milliseconds)
[info] "... styles, which are: [<empty list>]. For information on..." did not equal "... styles, which are: [org.scalatest.FunSpec, org.scalatest.FreeSpec, and org.scalatest.FlatSpec]. For information on..." (FunSuiteSpec.scala:730)
[info] SpecSpec:
[info]
[info] - should run only chosen styles, if specified, and throw an exception from run if a non-chosen style is attempted to be run *** FAILED *** (8 milliseconds)
[info] "... styles, which are: [<empty list>]. For information on..." did not equal "... styles, which are: [org.scalatest.FunSpec, org.scalatest.FreeSpec, and org.scalatest.FlatSpec]. For information on..." (SpecSpec.scala:2365)
[info] TestLocationFunctionPathFreeSpec:
[info] Test
[info] - should cancel !!! CANCELED !!! (0 milliseconds)
[info] org.scalatest.exceptions.TestCanceledException was thrown. (LocationFunctionSuiteProp.scala:463)
[info] SpecSpec:
[info]
[info] - should run only chosen styles, if specified, and throw an exception from run if a non-chosen style is attempted to be run *** FAILED *** (9 milliseconds)
[info] "... styles, which are: [<empty list>]. For information on..." did not equal "... styles, which are: [org.scalatest.fixture.FunSpec, org.scalatest.fixture.FreeSpec, and org.scalatest.fixture.FlatSpec]. For information on..." (SpecSpec.scala:2400)
[info] SuiteSuite:
[info]
[info] - testCheckChosenStyles *** FAILED *** (9 milliseconds)
[info] "... styles, which are: [<empty list>]. For information on..." did not equal "... styles, which are: [org.scalatest.FunSpec, org.scalatest.FreeSpec, and org.scalatest.FlatSpec]. For information on..." (SuiteSuite.scala:688)
[info] WebBrowserSpec:
[info] Web Browser
[info] - isScreenshotSupported should return true for ChromeDriver !!! CANCELED !!! (28 milliseconds)
[info] The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://code.google.com/p/chromedriver/downloads/list (WebBrowserSpec.scala:1387)
[info] WebBrowserSpec:
[info] Web Browser
[info] - isScreenshotSupported should return true for InternetExplorerDriver !!! CANCELED !!! (35 milliseconds)
[info] The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see http://code.google.com/p/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from http://code.google.com/p/selenium/downloads/list (WebBrowserSpec.scala:1393)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment