Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13991698
D8434.id.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.id.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
Wed, Oct 23, 12:12 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6733740
Default Alt Text
D8434.id.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