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
Unknown Object (File)
Thu, Dec 26, 3:08 AM
Unknown Object (File)
Sun, Dec 15, 6:37 AM
Unknown Object (File)
Sat, Dec 7, 5:09 PM
Unknown Object (File)
Sat, Dec 7, 6:57 AM
Unknown Object (File)
Thu, Dec 5, 4:11 AM
Unknown Object (File)
Fri, Nov 29, 10:11 AM
Unknown Object (File)
Nov 25 2024, 1:40 AM
Unknown Object (File)
Nov 21 2024, 4:00 PM

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.