Add timeouts to tests

Review Request #2919 - Created Oct. 2, 2015 and submitted

Information
Sameer Brenn
pants
77c4370...
Reviewers
pants-reviews
benjyw, jsirois, kwlzn, patricklaw, stuhood

Add timeouts to tests.

- A per-target test timeout can be configured in the BUILD file with timeout=SECONDS
- Because pants may run many targets tests as once, the timeouts for all the tests are summed for the entire run of tests timeout
- If one of the targets has no timeout, then all the tests run with no timeout
- A default timeout can be configured with the --timeout-default option
- Timeouts can be [disabled]/enabled with --[no-]timeouts
- Sets the default timeout to 1 minute for java & python tests in pants.ini

./pants test tests/python/pants_test:all
./pants test tests/python/pants_test/backend/jvm/tasks:junit_run_integration

- Added tests:
* tests/python/pants_test/util:timeout
* tests/python/pants_test/backend/python/tasks:pytest_run
* tests/python/pants_test/backend/jvm/tasks:junit_run
* tests/python/pants_test/backend/core/tasks:test_task_mixin

Pull Request: https://github.com/pantsbuild/pants/pull/2243

Issues

  • 0
  • 21
  • 4
  • 25
Description From Last Updated
Sameer Brenn
Eric Ayers
Stu Hood
Sameer Brenn
Sameer Brenn
Stu Hood
Sameer Brenn
Sameer Brenn
Patrick Lawson
Patrick Lawson
Patrick Lawson
John Sirois
Nick Howard (Twitter)
Sameer Brenn
Benjy Weinberger
Stu Hood
Benjy Weinberger
Benjy Weinberger
Benjy Weinberger
Benjy Weinberger
Benjy Weinberger
Sameer Brenn
Review request changed

Status: Closed (submitted)

Change Summary:

Merged as 93edf2f0f1dc397cd6fa5cace520ed2d8f4a3261

Loading...