]> khamidou — GitHub mirrors - arcanist.git/commit
Fail Arcanist tests when they make zero assertions
authorepriestley <git@epriestley.com>
Fri, 7 Mar 2014 18:03:24 +0000 (10:03 -0800)
committerepriestley <git@epriestley.com>
Fri, 7 Mar 2014 18:03:24 +0000 (10:03 -0800)
commitc6b1f3f070f6bbfe90619041607bba03adbef8e1
tree86900523d5e42777e7a117ef9491ae97b1d0adc2
parent22f62079205fed50ec70f32c3f8639da5b6e6a6e
Fail Arcanist tests when they make zero assertions

Summary:
Fixes T4570. When a test case doesn't make any assertions, fail it:

  - A tiny fraction of tests pass by not throwing. These tests can easily make a trivial assertion. It took about 5 minutes to fix them all (D8435, D8436).
  - In other cases, no assertions means a test construction problem, as with T4570. In these cases, failing loudly catches a severe error.
  - Fixes the no-assertion test cases in `arcanist/`
  - Makes the PHP 5.4 test pass for the moment, see discussion in T4334.

Test Plan: Ran `arc unit --everything`.

Reviewers: leebyron, btrahan

Reviewed By: btrahan

CC: aran
Maniphest Tasks: T4570

Differential Revision: https://secure.phabricator.com/D8437
src/lint/linter/__tests__/xhpast/php54.lint-test
src/unit/engine/__tests__/XUnitTestResultParserTestCase.php
src/unit/engine/phutil/ArcanistPhutilTestCase.php