• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 4387 / 3
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: pantsd/stdio-per-run-log
DEFAULT BRANCH: main
Ran 08 Apr 2015 04:12PM UTC
Files 319
Run time 10s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Apr 2015 04:04PM UTC coverage: 69.882%. First build
CI_FLAGS="-fkmsrcnet 'Unit tests for pants and pants-plugins'"

push

travis-ci

jsirois
Copy junit-runner in from twitter/commons.

This ports the junit-runner used by pants but does not actually
configure pants to use the ported runner.  That will come later after
the tool is published: https://github.com/pantsbuild/pants/issues/1361

The junit-runner in twitter/commons will be deleted after this tool is
published and consumed by pants HEAD.

Testing Done:
I dogfooded the runner to test itself via:
```console
$ pants.dev clean-all test {src,tests}/java/::
```
And by using the instructions in
`tests/java/org/pantsbuild/tools/junit/README` with the following diff:
```diff
$ git diff
diff --git a/BUILD.tools b/BUILD.tools
index fc53e75..da0a936 100644
--- a/BUILD.tools
+++ b/BUILD.tools
@@ -123,7 +123,8 @@ jar_library(name = 'junit',
             jars = [
               jar(org = 'junit', name = 'junit-dep', rev = '4.10'),
               jar(org = 'org.hamcrest', name = 'hamcrest-core', rev = '1.2'),
-              jar(org = 'com.twitter.common', name = 'junit-runner', rev = '0.0.41'),
+              jar(org = 'org.pantsbuild', name = 'junit-runner', rev = 'none', mutable = True,
+                  url = 'file:///home/jsirois/dev/3rdparty/jsirois-pants4/dist/junit-runner.jar'),

               # TODO(Eric Ayers) We need to rename/shade the dependencies of junit-runner
               #      or use a custom classloader for junit runner to permanently
diff --git a/src/python/pants/backend/jvm/tasks/junit_run.py b/src/python/pants/backend/jvm/tasks/junit_run.py
index 0c48798..509bf26 100644
--- a/src/python/pants/backend/jvm/tasks/junit_run.py
+++ b/src/python/pants/backend/jvm/tasks/junit_run.py
@@ -649,7 +649,7 @@ class Cobertura(_Coverage):

 class JUnitRun(JvmTask, JvmToolTaskMixin):
-  _MAIN = 'com.twitter.common.junit.runner.ConsoleRunner'
+  _MAIN = 'org.pantsbuild.tools.junit.ConsoleRunner'

   @classmethod
   def register_options(cls, register):
```

CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/57658118

Bugs cl... (continued)

13012 of 18620 relevant lines covered (69.88%)

0.7 hits per line

Source Files on job 4387.3 (CI_FLAGS="-fkmsrcnet 'Unit tests for pants and pants-plugins'")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4387
  • Travis Job 4387.3
  • 9844090b on github
  • Next Job for CI_FLAGS="-fkmsrcnet 'Unit tests for pants and pants-plugins'" on master (#4398.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc