specs dependencies

0 views
Skip to first unread message

walterc

unread,
Dec 19, 2009, 2:46:07 AM12/19/09
to simple-build-tool
i am using sbt 0.6.7 with scala 2.8.0-beta1-rc3. when i tried to
include specs library (1.6.1-2.8.0.Beta1-RC3), i needed to include
some of its dependencies (ScalaTest, ScalaCheck, JUnit, Mockito)
before my tests compiled. i know specs had its dependencies marked
"optional" in its pom file. so if they are really optional, why do i
need include them? is this a specs thing or sbt thing?

Mark Harrah

unread,
Dec 19, 2009, 10:53:31 AM12/19/09
to simple-b...@googlegroups.com
I'd guess it is a specs thing without knowing more. I assume that you
aren't making use of the features that require those libraries in your
tests, but it might still help to see the problematic test code.

-Mark

> --
>
> You received this message because you are subscribed to the Google Groups
> "simple-build-tool" group.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to
> simple-build-t...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/simple-build-tool?hl=en.
>
>
>

walterc

unread,
Dec 19, 2009, 11:33:33 AM12/19/09
to simple-build-tool
very simple code:

object SampleSpecification extends Specification {

"1 + 1 = 2" in {
1 + 1 must_== 2
}
}


On Dec 19, 11:53 pm, Mark Harrah <dmhar...@gmail.com> wrote:
> I'd guess it is a specs thing without knowing more.  I assume that you
> aren't making use of the features that require those libraries in your
> tests, but it might still help to see the problematic test code.
>
> -Mark
>

Mark Harrah

unread,
Dec 19, 2009, 6:29:54 PM12/19/09
to simple-b...@googlegroups.com, Eric Torreborre
specs now defines org.spex.Specification in addition to
org.specs.Specification as test class superclasses. sbt has to tell
the compiler load this class in order to determine if there are any
subclasses of org.spex.Specification. This means the compiler has to
load JUnit classes and make junit not optional.

org.spex.Specification extends org.specs.Specification, so I'm not
sure why it is added explicitly. I think the solution is for specs
not to list org.spex.Specification for the test interface. Eric, does
this sound right?

Thanks,
Mark

On 12/19/09, walterc <wei...@gmail.com> wrote:

etorreborre

unread,
Dec 20, 2009, 1:50:52 AM12/20/09
to simple-build-tool
> I think the solution is for specs
> not to list org.spex.Specification for the test interface. Eric, does
> this sound right?

Yes, that makes sense Mark. I just redeployed a 1.6.2-SNAPSHOT version
fixing this.

Walter, could you check if it works for you?

Thanks to both of you,

Eric.

On Dec 20, 10:29 am, Mark Harrah <dmhar...@gmail.com> wrote:
> specs now defines org.spex.Specification in addition to
> org.specs.Specification as test class superclasses.  sbt has to tell
> the compiler load this class in order to determine if there are any
> subclasses of org.spex.Specification.  This means the compiler has to
> load JUnit classes and make junit not optional.
>
> org.spex.Specification extends org.specs.Specification, so I'm not
> sure why it is added explicitly.  I think the solution is for specs
> not to list org.spex.Specification for the test interface.  Eric, does
> this sound right?
>
> Thanks,
> Mark
>

Walter Chang

unread,
Dec 20, 2009, 11:03:26 PM12/20/09
to simple-b...@googlegroups.com
I would love to test it but I am using Scala 2.8.0.Beta1-RC3 right now...

--
.......__o
.......\<,
....( )/ ( )...

etorreborre

unread,
Dec 21, 2009, 5:00:00 AM12/21/09
to simple-build-tool
I redeployed a version of specs for Scala 2.8.0.Beta1-RC3 which should
fix the issue.

Thanks for trying it and telling me if it works.

E.

> > For more options, visit this group athttp://groups.google.com/group/simple-build-tool?hl=en.

Walter Chang

unread,
Dec 21, 2009, 8:17:54 AM12/21/09
to simple-b...@googlegroups.com
i am sorry but i am not able to locate jar file. i couldn't find it
in the scala-tools snapshots repo nor the nexus.scala-tools.org repo.

etorreborre

unread,
Dec 21, 2009, 2:16:55 PM12/21/09
to simple-build-tool

Walter Chang

unread,
Dec 21, 2009, 9:18:00 PM12/21/09
to simple-b...@googlegroups.com
thanks, it works now.
Reply all
Reply to author
Forward
0 new messages