-
Notifications
You must be signed in to change notification settings - Fork 127
Re-enable PluginCoverageScalaJsTest
, fix dangling UndefinedParam
bug
#464
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
Conversation
This reverts commit 8da1f01.
Strange, I could have sworn the test was passing before! But failure is good too, it might mean #447 is a regression and not a new issue. |
.dependsOn(runtimeJVM % Test) | ||
// we need both runtimes compiled prior to running tests | ||
.dependsOn(runtimeJVM % Test, runtimeJS % Test) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, it was some trickiness actually. No regression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah this make sense. 👍🏼 good catch.
Ok, this is ready for review :) I'll work on #447 in a follow-up PR. |
Actually, I am skeptical if this is invoking the compiler the right way yet. Partly because I can't reproduce #447, and also because I realized I didn't make any configuration changes besides adding the sjs compiler to the classpath, which surely won't activate it magically 😅 |
Ok, I know I'm going in circles here, but now that I think I'm invoking the compiler correctly, indeed the existing test is broken with the same issue as #447.
|
So far it seems like the problem is detecting Scala.js itself. scalac-scoverage-plugin/plugin/src/main/scala/scoverage/ScoveragePlugin.scala Lines 101 to 107 in a557126
If I change that to return I'm hopeless to get it to print out the error 😕 |
Ok, got a stack trace that's thrown when calling
|
Aha, I think making it |
PluginCoverageScalaJsTest
PluginCoverageScalaJsTest
, fix dangling UndefinedParam
bug
I can confirm the fix (as released in 2.0.0-M7+1-9cfca69b-SNAPSHOT) works in downstreams 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good @armanbilge. Just a quick question on the buildInfo
module though.
@@ -179,6 +181,16 @@ lazy val reporter = | |||
) | |||
.dependsOn(domain, serializer) | |||
|
|||
lazy val buildInfo = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come we have a separate build target for buildInfo
instead of just including the buildInfo stuff inside of the plugin
module and enabling the BuildInfoPlugin
there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, yes I suppose we could. I did this because the BuildInfo
was only needed in the Test
scope and there's currently no way to configure that (see sbt/sbt-buildinfo#186). But I guess here if we "leak" the BuildInfo
as part of the shipped plugin, it's probably not a big deal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was only needed in the Test scope
Yea, that's sort of what I expected. No worries. Let's leave it as is.
.dependsOn(runtimeJVM % Test) | ||
// we need both runtimes compiled prior to running tests | ||
.dependsOn(runtimeJVM % Test, runtimeJS % Test) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah this make sense. 👍🏼 good catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alrighty, LGTM. Thanks @armanbilge!
This PR re-enables the
PluginCoverageScalaJsTest
that is currently being ignored.Fortunately, it still passes :)Fixes #447.