import org.scalatest._
object RegrSuite extends FeatureSpec with GivenWhenThen {
feature("FeatureSpec") {
scenario("should produce output") {
Given("a prime number x")
When("x is even")
Then("x equals 2")
}
}
}
class RegrSuite extends Suites(RegrSuite)
When I run using ScalaTest 2.2.6, I get the following output:
[info] RegrSuite:
[info] Feature: FeatureSpec
[info] Scenario: should produce output
[info] Given a prime number x
[info] When x is even
[info] Then x equals 2
[info] Run completed in 273 milliseconds.
[info] Total number of tests run: 1
[info] Suites: completed 2, aborted 0
[info] Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0
But under 3.0.0, I get the following:
[info] Run completed in 159 milliseconds.
[info] Total number of tests run: 1
[info] Suites: completed 2, aborted 0
[info] Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0
As you can see, the test still runs, but most of the output for the test has gone away. I'm guessing this is an unintended change. It's preventing me from upgrading to 3.0.0 at the moment. I would be willing to take a stab at a fix if you think it wouldn't be too difficult for me to figure out. Any hints at where I might start looking?
Thanks! -John