Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14028785
D8434.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
642 B
Referenced Files
None
Subscribers
None
D8434.diff
View Options
Index: src/lint/linter/__tests__/ArcanistLinterTestCase.php
===================================================================
--- src/lint/linter/__tests__/ArcanistLinterTestCase.php
+++ src/lint/linter/__tests__/ArcanistLinterTestCase.php
@@ -13,9 +13,16 @@
->withSuffix('lint-test')
->find();
+ $test_count = 0;
foreach ($files as $file) {
$this->lintFile($root.$file, $linter);
+ $test_count++;
}
+
+ $this->assertEqual(
+ true,
+ ($test_count > 0),
+ pht('Expected to find some .lint-test tests in directory %s!', $root));
}
private function lintFile($file, $linter) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 4:03 PM (3 d, 8 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6733740
Default Alt Text
D8434.diff (642 B)
Attached To
Mode
D8434: Fail lint tests if no tests are found in the test directory
Attached
Detach File
Event Timeline
Log In to Comment