-
Notifications
You must be signed in to change notification settings - Fork 304
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
Running tests (junit/specs2/scala) misses some of them #98
Comments
I also recreated this. |
Natan,
That might be a different issue.
I was able to see two JUnit test classes from the same target using glob.
The problem with respect to the JUnit test was the package name (which I
wrote above). If both share the same package then it's not a problem.
…On Wed, 14 Jun 2017 at 15:49 Natan Silnitsky ***@***.***> wrote:
I also recreated this.
If I have two different test targets (one for each test class), than both
are run,
but if I merge the targets to one test target with glob(["*.scala"]) than
only one test class is run.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#98 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF-WpNXW8sQcV64tK_p0-_QZP4HYNks5sD9bLgaJpZM4N5zTC>
.
|
It has nothing to do with the package name either.
We check if |
This happens in java too if the test runs too fast. I'll file a bug with bazel to set |
I see. This means that we'll need to wait for the next release, right? |
Also, |
I tried the same, but the test xml still says |
Filed this for the 0.0 time vs not run issue: bazelbuild/bazel#3201 |
Hi,
I have a basic example project for bazel and scala.
When I try to run a test target which has a few tests (2 junit and 1 specs2) I see:
If we look at the bazel test.xml output we do see all three of them (rename the test.xml.txt to test.xml as github doesn't allow xml).
test.xml.txt
If I change the package of SomeJunit2Test (which is missing) from
src.test.java.com.example
tocom.example
it starts appearing.The Specs2 test doesn't appear at all and I think there is a correlation between them since its testsuite name is also unorthodox.
Bazel console shows no errors and so does the problems view.
Versions:
rules_scala: 5d6ff512652b8b55f5d26f6ea69e05d86582d996 (this morning)
Intellij bazel plugin: 2017.05.08.1
Bazel: 55f40c8ea4f1e7bf81552bfe4377e26768e85f2c (June 6th)
Intellij:
IntelliJ IDEA 2017.1.2
Build #IU-171.4249.39, built on April 25, 2017
JRE: 1.8.0_112-release-736-b16 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.11.6
The text was updated successfully, but these errors were encountered: