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

HtmlReporter breaks with Maven reactor builds #71

Open
ieure opened this issue Sep 10, 2013 · 1 comment
Open

HtmlReporter breaks with Maven reactor builds #71

ieure opened this issue Sep 10, 2013 · 1 comment

Comments

@ieure
Copy link

ieure commented Sep 10, 2013

I recently split a scala project up into multiple modules, and found that scct no longer determines the source path correctly. Running mvn -Pcoverage clean test causes this exception:

scct: [billyray-cuttlefish-wire] Generating coverage report.
Exception in thread "Thread-3" java.io.FileNotFoundException: /Users/ieure/Projects/billyray-cuttlefish/billyray-cuttlefish-wire/billyray-cuttlefish-wire/src/main/scala/com/billyray-cuttlefish/wire/Balances.scala (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at scala.io.Source$.fromFile(Source.scala:91)
at scala.io.Source$.fromFile(Source.scala:76)
at scala.io.Source$.fromFile(Source.scala:81)
at reaktor.scct.report.SourceLoader.linesFor(SourceLoader.scala:8)
at reaktor.scct.report.SourceFileHtmlReporter$.report(SourceFileHtmlReporter.scala:11)
at reaktor.scct.report.HtmlReporter$$anonfun$sourceFileReports$2.apply(HtmlReporter.scala:92)
at reaktor.scct.report.HtmlReporter$$anonfun$sourceFileReports$2.apply(HtmlReporter.scala:91)
at scala.collection.immutable.TreeMap$$anonfun$foreach$1.apply(TreeMap.scala:160)
at scala.collection.immutable.RedBlack$NonEmpty.foreach(RedBlack.scala:164)
at scala.collection.immutable.RedBlack$NonEmpty.foreach(RedBlack.scala:163)
at scala.collection.immutable.RedBlack$NonEmpty.foreach(RedBlack.scala:163)
at scala.collection.immutable.RedBlack$NonEmpty.foreach(RedBlack.scala:163)
at scala.collection.immutable.TreeMap.foreach(TreeMap.scala:160)
at reaktor.scct.report.HtmlReporter.sourceFileReports(HtmlReporter.scala:91)
at reaktor.scct.report.HtmlReporter.report(HtmlReporter.scala:20)
at reaktor.scct.Coverage$.report(Coverage.scala:58)
at reaktor.scct.Coverage$$anon$1.run(Coverage.scala:67)
@charleso
Copy link

charleso commented Nov 6, 2013

@ieure Did you find away around this?

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