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

Add ScalaNativeJUnitPlugin for easy setup of JUnit tests #2556

Conversation

WojciechMazur
Copy link
Contributor

This PR adds an sbt plugin ScalaNativeJUnitPlugin shipped both with standard compiler plugin. It was ported from Scala.js and would fix issues leading to adding unit compiler plugins in both Compile and Test scopes.

It does resolve #2540

  • Ported implementation of ScalaNativeJunitPlugin from its Scala.js counterpart
  • Added scripted test to check the implementation of the new sbt plugin.

@WojciechMazur WojciechMazur merged commit 7216dc9 into scala-native:main Feb 10, 2022
@WojciechMazur WojciechMazur deleted the sbt-plugin/scalaNativeJunitPlugin branch February 10, 2022 11:58
@@ -0,0 +1 @@
{"name":"sbt","version":"1.5.0","bspVersion":"2.0.0-M5","languages":["scala"],"argv":["/home/wmazur/.sdkman/candidates/java/8.0.275.hs-adpt/jre/bin/java","-Xms100m","-Xmx100m","-classpath","/home/wmazur/.sdkman/candidates/sbt/1.4.4/bin/sbt-launch.jar","xsbt.boot.Boot","-bsp","--sbt-launch-jar=/home/wmazur/.sdkman/candidates/sbt/1.4.4/bin/sbt-launch.jar"]}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

add ScalaNativeJUnitPlugin sbt plugin like scala-js
2 participants