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

pantsbuild / pants / 7212
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: automation/release/2.32.0.dev6
DEFAULT BRANCH: main
Ran 02 Oct 2015 03:13PM UTC
Jobs 8
Files 0
Run time –
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

pending completion
7212

push

travis-ci

ericzundel
Allow junit tests to have empty sources

Adds an advanced option `--test-junit-allow-empty-sources` to allow a BUILD file to contain a test target that defines empty sources.

This is a convenience for us with out BUILD file in a maven style layout.  Our test targets are defined with a regular pattern,

```

junit_tests(name='test',
  sources = rglobs('*Test.java'),
  ...
)

junit_tests(name='integration-tests',
  sources = rglobs('*IT.java'),
  ...
)

java_library(name='lib',
  sources = rglobs('*.java') - rglobs('*IT.java') - rglobs('*Test.java'),
  ...
)
```

And our scripts expect to be able to run `./pants test <project>:test` on any project

but some directories are missing some classes of tests.  Without this change, our BUILD file generation has to search the filesystem to find if tests with particular glob patterns exist and re-write these 'junit_tests()' targets with `target()`, which slows things down.

Bugs closed: 2305

Reviewed at https://rbcommons.com/s/twitter/r/2923/
Jobs
ID Job ID Ran Files Coverage
1 7212.1 (CI_FLAGS="-cjlpn 'Various pants self checks'") 02 Oct 2015 03:13PM UTC 0
Travis Job 7212.1
4 7212.4 (CI_FLAGS="-fkmsrcjlp 'Python contrib tests'") 02 Oct 2015 03:18PM UTC 0
Travis Job 7212.4
5 7212.5 (CI_FLAGS="-fkmsrjlpn -i 0/6 'Python integration tests for pants - shard 1'") 02 Oct 2015 03:26PM UTC 0
Travis Job 7212.5
6 7212.6 (CI_FLAGS="-fkmsrjlpn -i 1/6 'Python integration tests for pants - shard 2'") 02 Oct 2015 03:23PM UTC 0
Travis Job 7212.6
7 7212.7 (CI_FLAGS="-fkmsrjlpn -i 2/6 'Python integration tests for pants - shard 3'") 02 Oct 2015 03:26PM UTC 0
Travis Job 7212.7
8 7212.8 (CI_FLAGS="-fkmsrjlpn -i 3/6 'Python integration tests for pants - shard 4'") 02 Oct 2015 03:27PM UTC 0
Travis Job 7212.8
9 7212.9 (CI_FLAGS="-fkmsrjlpn -i 4/6 'Python integration tests for pants - shard 5'") 02 Oct 2015 03:27PM UTC 0
Travis Job 7212.9
10 7212.10 (CI_FLAGS="-fkmsrjlpn -i 5/6 'Python integration tests for pants - shard 6'") 02 Oct 2015 03:36PM UTC 0
Travis Job 7212.10
Source Files on build 7212
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7212
  • 8f137c6b on github
  • Prev Build on master (#7210)
  • Next Build on master (#7213)
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