Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No source file found at src/test/scala/org/specs2/specification/FragmentsBuilder.scala" #127

Closed
greenrd opened this issue Jan 11, 2013 · 4 comments
Milestone

Comments

@greenrd
Copy link

greenrd commented Jan 11, 2013

My specs2 test output from sbt looks like this:

[info] EventGeneratorSpec
[info] 
[info] + No source file found at src/test/scala/org/specs2/specification/FragmentsBuilder.scala
[info] + No source file found at src/test/scala/org/specs2/specification/FragmentsBuilder.scala
[info] + No source file found at src/test/scala/org/specs2/specification/FragmentsBuilder.scala
[info]  
[info] Total for specification EventGeneratorSpec
[info] Finished in 6 seconds, 624 ms
[info] 3 examples, 5 expectations, 0 failure, 0 error
[info] 
[info] Passed: : Total 3, Failed 0, Errors 0, Passed 3, Skipped 0
[success] Total time: 13 s, completed 11-Jan-2013 11:36:46

A few minutes ago it was only two of them, but now all three are displaying incorrectly!

This is with specs2 1.12.3.

@etorreborre
Copy link
Owner

Can you share your specification or send me a reproducible example? This part of the code is really fragile in specs2 and I need to find a proper to code it, probably using macros.

@etorreborre
Copy link
Owner

Also, this doesn't happen by chance, this means that you have "auto-examples" like this:

class MySpec extends Specification { def is = 
  { eventGenerator must not(beNull) }^
                                     end
}

@greenrd
Copy link
Author

greenrd commented Jan 21, 2013

Here is a reproducable example. It's the "with ScalaCheck" that causes the problem.

import org.specs2.{ScalaCheck,Specification}

class MySpec extends Specification with ScalaCheck { def is =
  sequential ^
    `foo`    ^ end

  def `foo` = success

}

@etorreborre
Copy link
Owner

Thanks for this example. I fixed this issue in the latest 1.12.4-SNAPSHOT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants