Enable fail-fast for pytest so it works like fail-fast for junit

Review Request #3497 - Created Feb. 24, 2016 and submitted

Information
Nick Howard (Twitter)
pants
2962
Reviewers
pants-reviews
benjyw, jsirois, kwlzn, zundel

Fail fast didn't work the way I expected when trying to use it with python tests. This gives it behavior like junit runner's. Now when --fail-fast is specified, the pytest runner will bail after the first failure, and Pants will also skip running the rest of the targets if not running in fast mode.

Wrote tests exercising both code paths for pytest execution. CI away on PR.

Issues

  • 0
  • 3
  • 0
  • 3
Description From Last Updated
Benjy Weinberger
Eric Ayers
Nick Howard (Twitter)
Benjy Weinberger
Eric Ayers
Nick Howard (Twitter)
Review request changed

Status: Closed (submitted)

Change Summary:

https://github.com/pantsbuild/pants/commit/066e73674eaffa9fd579300089ce44ff2c5eb43c

Loading...