Page MenuHomePhabricator

Fail Arcanist tests when they make zero assertions
ClosedPublic

Authored by epriestley on Mar 7 2014, 2:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 2, 5:06 AM
Unknown Object (File)
Dec 14 2024, 3:03 PM
Unknown Object (File)
Dec 2 2024, 4:05 AM
Unknown Object (File)
Nov 29 2024, 3:34 AM
Unknown Object (File)
Nov 26 2024, 4:23 PM
Unknown Object (File)
Nov 26 2024, 4:23 PM
Unknown Object (File)
Nov 26 2024, 4:23 PM
Unknown Object (File)
Nov 22 2024, 6:03 PM
Subscribers

Details

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.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan edited edge metadata.
This revision is now accepted and ready to land.Mar 7 2014, 5:51 PM