Tuesday 15 April 2014

playframework - Scala Play 2.3.5 - Coveralls sbt plugin java.io.IOException: Unable to download JavaScript -



playframework - Scala Play 2.3.5 - Coveralls sbt plugin java.io.IOException: Unable to download JavaScript -

i trying setup play scala project buildchain travis, heroku , coveralls sbt plugin codecoverage. have created clean scala play app activator , added coveralls plugin , travis.yml.

when force project , trigger build next exception while travis runs tests:

[error] c.g.h.h.htmlpage - error loading javascript [http://localhost:19001/assets/javascripts/hello.js]. java.io.ioexception: unable download javascript 'http://localhost:19001/assets/javascripts/hello.js' (status 404). @ com.gargoylesoftware.htmlunit.html.htmlpage.loadjavascriptfromurl(htmlpage.java:1106) ~[htmlunit-2.13.jar:2.13] @ com.gargoylesoftware.htmlunit.html.htmlpage.loadexternaljavascriptfile(htmlpage.java:1039) ~[htmlunit-2.13.jar:2.13] @ com.gargoylesoftware.htmlunit.html.htmlscript.executescriptifneeded(htmlscript.java:409) [htmlunit-2.13.jar:2.13] @ com.gargoylesoftware.htmlunit.html.htmlscript$3.execute(htmlscript.java:266) [htmlunit-2.13.jar:2.13] @ com.gargoylesoftware.htmlunit.html.htmlscript.onallchildrenaddedtopage(htmlscript.java:286) [htmlunit-2.13.jar:2.13]

i have found old topic (https://groups.google.com/forum/#!topic/play-framework/yj4nt3bo0os) same errormessage unfortunately none of solutions there worked me.

does here utilize coveralls or know solution problem? ve attached configuration files.

build.sbt

import scoverage.scoveragesbtplugin.instrumentsettings import org.scoverage.coveralls.coverallsplugin.coverallssettings name := """buildchain""" version := "1.0-snapshot" scalaversion := "2.11.1" lazy val root = (project in file(".")).enableplugins(playscala) librarydependencies ++= seq( jdbc, anorm, cache, ws ) instrumentsettings coverallsplugin.coverallssettings scoveragekeys.minimumcoverage := 1 scoveragekeys.failonminimumcoverage := true

plugins.sbt:

resolvers += "typesafe repository" @ "http://repo.typesafe.com/typesafe/releases/" resolvers += classpaths.sbtpluginreleases // play plugin addsbtplugin("com.typesafe.play" % "sbt-plugin" % "2.3.5") // web plugins addsbtplugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-less" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.1") addsbtplugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.1") addsbtplugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-mocha" % "1.0.0") // code coverage addsbtplugin("org.scoverage" % "sbt-scoverage" % "0.99.7.1") addsbtplugin("org.scoverage" %% "sbt-coveralls" % "0.99.0")

travis.yml

language: scala scala: - 2.11.2 script: "sbt coveralls" notifications: email: false

the issue sbt-scoverage , has been fixed in release 1.0.0. please note have update way utilize plugin, refer setup guide on readme.

https://github.com/scoverage/sbt-scoverage

scala playframework playframework-2.3 coveralls

No comments:

Post a Comment