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

Java projects are forced to include ScalaTest as dependency #1147

jlprat opened this Issue May 19, 2017 · 1 comment


None yet
2 participants

jlprat commented May 19, 2017

Currently if you want to use the Java test suit in a Java project you need to include ScalaTest as a dependency.

Java developers don't need this dependency on their projects, thus it should not be forced to be added.

Currently if it's not added you get the following error:

[info] [info] Compiling 3 Java sources to /tmp/sbt_823bc44b/scripted/target/scala-2.12/test-classes...
[info] [error] /tmp/sbt_823bc44b/scripted/src/test/java/com/example/ cannot access org.scalatest.junit.JUnitSuiteLike
[info] [error]   class file for org.scalatest.junit.JUnitSuiteLike not found
[info] [error] public class HttpServerHttpAppTest extends JUnitRouteTest {
[info] [error] /tmp/sbt_823bc44b/scripted/src/test/java/com/example/ cannot find symbol
[info] [error]   symbol:   method testRoute(akka.http.javadsl.server.Route)
[info] [error]   location: class com.example.HttpServerHttpAppTest
[info] [error]     appRoute = testRoute(server.route());
[info] [error] (test:compileIncremental) javac returned nonzero exit code

Discovered during akka/akka-http-quickstart-java.g8#1

@jlprat jlprat referenced this issue May 19, 2017


Initial seed #1

jrudolph added a commit to jrudolph/akka-http that referenced this issue Jun 12, 2017


This comment has been minimized.

Show comment
Hide comment

jrudolph Jun 12, 2017


Yep, good one. Probably there's no reason that JUnitSuiteLike is referenced at all.


jrudolph commented Jun 12, 2017

Yep, good one. Probably there's no reason that JUnitSuiteLike is referenced at all.

@jrudolph jrudolph self-assigned this Jun 12, 2017

@jlprat jlprat closed this in #1189 Jun 12, 2017

jlprat added a commit that referenced this issue Jun 12, 2017

Merge pull request #1189 from jrudolph/jr/w/1147-dont-reference-scala…

=htk #1147 don't reference JUnitSuiteLike in Java JUnit testing infrastructure

@jlprat jlprat removed the 3 - in progress label Jun 12, 2017

@jlprat jlprat added this to the 10.0.8 milestone Jun 12, 2017

tomrf1 added a commit to tomrf1/akka-http that referenced this issue Aug 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment