My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 39: The part before 'should' does not appear in the JUnit report.
1 person starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  ----
Closed:  Sep 2008

Sign in to add a comment
Reported by, Sep 19, 2008
What steps will reproduce the problem?

import org.specs.runner.JUnit4
import org.specs.{Specification, Scalacheck}

class SecondTest extends JUnit4(new Specification with Scalacheck {
 "foo" should { "equal foo" in { "foo" mustBe "bar" } } } )

2. Run the above with JUnit.
3. Look at the report.

What is the expected output? What do you see instead?

"foo should equal foo: foo should equal bar"

"equal foo"

What version of the product are you using? On what operating system?

Specs 1.3.1.
Scala 2.7.1, Java 6, Ubuntu Hardy.

Please provide any additional information below.

I'm using Maven to run it.
Sep 20, 2008
Project Member #1

This is the "intended" behaviour since the display in Eclipse gives a readable 
display like:

foo should
   x equal foo       |     Failure: foo should equal bar

Yet, running the same test with maven doesn't provide the same readibility. 

I'll try to find a find to differentiate between the runners and provide a better 
Status: Accepted
Sep 21, 2008
Project Member #2
I have fixed this issue by appending the system description before the example

Yet the failure description only shows up in the target/surefire-reports/*.txt files
as it is the case with regular junit test cases.

It is committed in the latest version 1.3.2-SNAPSHOT (compatible with Scala-2.7.2-rc1
Status: Fixed
Feb 25, 2009
Project Member #3
(No comment was entered for this change.)
Status: Verified
Sign in to add a comment

Powered by Google Project Hosting