Page MenuHomePhabricator

Skip unit tests if `ArcanistLinter::getCacheVersion` throws an `ArcanistUsageException`
ClosedPublic

Authored by joshuaspence on Jan 9 2014, 1:56 AM.
Tags
None
Referenced Files
F14036029: D7913.diff
Sun, Nov 10, 8:17 AM
F13999310: D7913.diff
Thu, Oct 24, 2:07 PM
F13979986: D7913.id17910.diff
Sat, Oct 19, 7:45 AM
F13972667: D7913.id.diff
Thu, Oct 17, 8:25 PM
Unknown Object (File)
Sep 20 2024, 9:24 AM
Unknown Object (File)
Sep 19 2024, 12:50 AM
Unknown Object (File)
Aug 29 2024, 1:00 PM
Unknown Object (File)
Aug 29 2024, 3:23 AM

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Can you throw a comment in the catch block about why/when this happens?

Also, walk me through how this causes the tests to be skipped? That doesn't seem to follow obviously from this change...

Yeah sorry, that was a really bad attempt. Pushing a new diff

joshuaspence updated this revision to Unknown Object (????).Jan 9 2014, 2:18 AM

Previous attempt didn't work as expected.

src/lint/linter/__tests__/ArcanistLinterTestCase.php
122

ArcanistLinter::getCacheVersion throws ArcanistUsageException... it doesn't get converted into a PhutilAggregateException.

Ah, nice, this is much cleaner.