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

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

Build:
Build:
LAST BUILD BRANCH: fix-changed-since-whitespace-23307
DEFAULT BRANCH: main
Ran 09 Jun 2015 04:46PM UTC
Files 330
Run time 19s
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

09 Jun 2015 03:56PM UTC coverage: 66.077% (+0.6%) from 65.479%
CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'"

push

travis-ci

jsirois
Add support for ServiceLoader service providers.

Since ServiceLoader service providers are part of the jvm apis and we
support them already in the jar tool (concatenating service provider
configuration files by default when creating binaries), add support for
generating the service provider configuration files directly.

This change also refactors the existing `PrepareResources` class, moving
it from the core backend to jvm since it operated on jvm assumptions and
lifting its core machinery to a `ResourcesTask` base class.

Testing Done:
New test coverage:
```console
$ pants.dev test.pytest \
  --coverage=modules:pants.backend.jvm.tasks.resources_task,pants.backend.jvm.tasks.prepare_resources,pants.backend.jvm.tasks.prepare_services \
  tests/python/pants_test/backend/jvm/tasks/:{resources_task,prepare_{resources,services}}
...
13:28:02 00:01         [chroot]============== test session starts ===============
                     platform linux2 -- Python 2.7.8 -- py-1.4.28 -- pytest-2.6.4
                     plugins: timeout
                     collected 17 items

                     tests/python/pants_test/backend/jvm/tasks/test_resources_task.py ......
                     tests/python/pants_test/backend/jvm/tasks/test_prepare_resources.py .....
                     tests/python/pants_test/backend/jvm/tasks/test_prepare_services.py ......

                     =========== 17 passed in 0.69 seconds ============
                     Name                                                   Stmts   Miss Branch BrMiss  Cover
                     ----------------------------------------------------------------------------------------
                     src/python/pants/backend/jvm/tasks/prepare_resources      32      2      6      0    95%
                     src/python/pants/backend/jvm/tasks/prepare_services       31      0      6      0   100%
                     src/python/pants/backend/jvm/tasks/resources_task         54      2     24      2    95%
                     ----------------------------------------------------------------------------------------
                     TOTAL                                                    117      4     36      2    96%
...
```

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

Bugs closed: 1634, 1647

Reviewed at https://rbcommons.com/s/twitter/r/2331/

13115 of 19848 relevant lines covered (66.08%)

0.66 hits per line

Source Files on job 5237.3 (CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'")
  • Tree
  • List 0
  • Changed 87
  • Source Changed 3
  • Coverage Changed 87
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5237
  • Travis Job 5237.3
  • b9de9c7c on github
  • Prev Job for CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'" on master (#5236.3)
  • Next Job for CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'" on master (#5238.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc