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
Add Scala.js test suite #37
Conversation
This looks amazing! I will review this tomorrow. Thanks a lot! |
Great. I've rebased onto master and made the change to fix the scala.Enumeration test. One thing that would be nice to fix before pulling this in would be to use the jasmine webjar instead of including the 2000+ line jasmine.js in the repository. diff --git a/project/ScalaJSBuild.scala b/project/ScalaJSBuild.scala
index dd7965f..70affae 100644
--- a/project/ScalaJSBuild.scala
+++ b/project/ScalaJSBuild.scala
@@ -259,13 +259,16 @@ object ScalaJSBuild extends Build {
// Testing
+ val jasmineVersion = "1.3.1"
+
lazy val test: Project = Project(
id = "scalajs-test",
base = file("test"),
settings = defaultSettings ++ scalaJSSettings ++ Seq(
name := "Scala.js test suite",
publishArtifact in Compile := false,
- scalacOptions += "-Yskip:cleanup,icode,jvm"
+ scalacOptions += "-Yskip:cleanup,icode,jvm",
+ libraryDependencies += "org.webjars" % "jasmine" % jasmineVersion % "test"
)
).dependsOn(compiler % "plugin") So far I have not been able to find a way to ensure that jasmine.js is included before jasmine-html.js in the webjar. And that test/src/test/resources/bootstrap.js is included before jasmine.js ...
|
Hi, I built a few more commits on top of this pull request, here:
WDYT? If it seems OK to you, I suggest squashing all the commits, and merge that. |
Looks good to me. :)
|
And please feel free to also change the copyright to LAMP/EPFL, if that is
|
Yes, actually it is preferable, thank you for suggesting it. It's done, and merged :-) |
It's far from complete, but will hopefully make it easier to contribute to Scala.js. |
Complete with Jasmine runner, console reporter and 72 specs.
It currently has one failing spec.