Closed GoogleCodeExporter closed 9 years ago
Same problem with specs versions:
1.6.5 (as opposed to 1.6.5-SNAPSHOT)
1.6.6-SNAPSHOT
Original comment by daniel.k...@gmail.com
on 5 Aug 2010 at 7:22
Thanks for checking with the latest versions too :-)
I'm going to have a look at that.
Original comment by etorrebo...@gmail.com
on 5 Aug 2010 at 7:25
I have a first fix that should work with sbt (still needs to test that) but it
doesn't work yet with JUnit as a runner:
http://nexus.scala-tools.org/content/repositories/snapshots/org/scala-tools/test
ing/specs_2.8.0/1.6.6-SNAPSHOT/
In any case, an easy workaround for your case is to execute the "afterSpec"
code directly after the last example without using any doAfterSpec (the only
thing though is that you need to make sure that no exception is thrown in that
case)
Original comment by etorrebo...@gmail.com
on 5 Aug 2010 at 12:32
I confirm that this fix is working ok with sbt
Original comment by etorrebo...@gmail.com
on 5 Aug 2010 at 12:36
Many thanks for your fast response! I'm trying to validate that it is fixed but
having trouble getting it to work.
When I try to run it with the following sbt configuration:
import sbt._
class project(info: ProjectInfo) extends DefaultProject(info) {
val specs = "org.scala-tools.testing" % "specs_2.8.0" % "1.6.6-SNAPSHOT"
val scalaToolsSnapshots = "Scala-Tools Maven2 Snapshots Repository" at "http://scala-tools.org/repo-snapshots"
}
I get this error:
[error] Error running update: sbt.ResolveException: unresolved dependency:
javax.script#js-engine;1.0: not found
[error] unresolved dependency: javax.script#script-api;1.0: not found
[error] unresolved dependency: javax.script#script-js;1.0: not found
This may be an sbt related problem. If I just download the jar to my lib folder
and run it within sbt I get:
[info] == test-compile ==
[info] Source analysis: 0 new/modified, 1 indirectly invalidated, 0 removed.
[info] Compiling test sources...
[error] error while loading SpecFailureException, read error
[error] one error found
[info] == test-compile ==
[error] Error running test-compile: Compilation failed
Do you know what's wrong here? Is this a problem with my sbt config and I'm on
the wrong list here?
Original comment by daniel.k...@gmail.com
on 5 Aug 2010 at 7:19
I think I need to work on my own sbt project. Those dependencies are not
mandatory so I need to check on the pom file that sbt is generating. You can
get them from this repo if that helps:
val specsRepo = Resolver.url("specs-repo", new
java.net.URL("http://specs.googlecode.com/svn/maven2"))
Then I have no idea about the other error. I'll try to do some testing on this
during the week-end.
Original comment by etorrebo...@gmail.com
on 6 Aug 2010 at 7:38
I fixed the remaining junit and redeployed using by original maven pom file.
Please check on your end if it works ok.
Original comment by etorrebo...@gmail.com
on 7 Aug 2010 at 12:33
I confirm that everything is working as expected with the current
1.6.6-SNAPSHOT.
Also the problem with the missing dependencies is fixed.
Many thanks for your effort. specs is an amazing piece of software!
Original comment by daniel.k...@gmail.com
on 7 Aug 2010 at 3:24
Original comment by etorrebo...@gmail.com
on 31 Mar 2011 at 8:05
Original issue reported on code.google.com by
daniel.k...@gmail.com
on 5 Aug 2010 at 6:49