1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 08:12:40 +01:00

Remove the ArcanistArcanistLinterTestCase

Summary: I don't think that this provides too much value. I think that we should rework this to be inferred from the `.arcconfig` file perhaps?

Test Plan: `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11662
This commit is contained in:
Joshua Spence 2015-02-05 07:21:00 +11:00
parent 5c20df1818
commit 992d939e3a
14 changed files with 24 additions and 48 deletions

View file

@ -12,7 +12,6 @@ phutil_register_library_map(array(
'ArcanistAliasWorkflow' => 'workflow/ArcanistAliasWorkflow.php', 'ArcanistAliasWorkflow' => 'workflow/ArcanistAliasWorkflow.php',
'ArcanistAmendWorkflow' => 'workflow/ArcanistAmendWorkflow.php', 'ArcanistAmendWorkflow' => 'workflow/ArcanistAmendWorkflow.php',
'ArcanistAnoidWorkflow' => 'workflow/ArcanistAnoidWorkflow.php', 'ArcanistAnoidWorkflow' => 'workflow/ArcanistAnoidWorkflow.php',
'ArcanistArcanistLinterTestCase' => 'lint/linter/__tests__/ArcanistArcanistLinterTestCase.php',
'ArcanistBackoutWorkflow' => 'workflow/ArcanistBackoutWorkflow.php', 'ArcanistBackoutWorkflow' => 'workflow/ArcanistBackoutWorkflow.php',
'ArcanistBaseCommitParser' => 'parser/ArcanistBaseCommitParser.php', 'ArcanistBaseCommitParser' => 'parser/ArcanistBaseCommitParser.php',
'ArcanistBaseCommitParserTestCase' => 'parser/__tests__/ArcanistBaseCommitParserTestCase.php', 'ArcanistBaseCommitParserTestCase' => 'parser/__tests__/ArcanistBaseCommitParserTestCase.php',
@ -223,7 +222,6 @@ phutil_register_library_map(array(
'ArcanistAliasWorkflow' => 'ArcanistWorkflow', 'ArcanistAliasWorkflow' => 'ArcanistWorkflow',
'ArcanistAmendWorkflow' => 'ArcanistWorkflow', 'ArcanistAmendWorkflow' => 'ArcanistWorkflow',
'ArcanistAnoidWorkflow' => 'ArcanistWorkflow', 'ArcanistAnoidWorkflow' => 'ArcanistWorkflow',
'ArcanistArcanistLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistBackoutWorkflow' => 'ArcanistWorkflow', 'ArcanistBackoutWorkflow' => 'ArcanistWorkflow',
'ArcanistBaseCommitParserTestCase' => 'ArcanistTestCase', 'ArcanistBaseCommitParserTestCase' => 'ArcanistTestCase',
'ArcanistBaseUnitTestEngine' => 'ArcanistUnitTestEngine', 'ArcanistBaseUnitTestEngine' => 'ArcanistUnitTestEngine',
@ -241,7 +239,7 @@ phutil_register_library_map(array(
'ArcanistCapabilityNotSupportedException' => 'Exception', 'ArcanistCapabilityNotSupportedException' => 'Exception',
'ArcanistCheckstyleXMLLintRenderer' => 'ArcanistLintRenderer', 'ArcanistCheckstyleXMLLintRenderer' => 'ArcanistLintRenderer',
'ArcanistChmodLinter' => 'ArcanistLinter', 'ArcanistChmodLinter' => 'ArcanistLinter',
'ArcanistChmodLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistChmodLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistCloseRevisionWorkflow' => 'ArcanistWorkflow', 'ArcanistCloseRevisionWorkflow' => 'ArcanistWorkflow',
'ArcanistCloseWorkflow' => 'ArcanistWorkflow', 'ArcanistCloseWorkflow' => 'ArcanistWorkflow',
'ArcanistClosureLinter' => 'ArcanistExternalLinter', 'ArcanistClosureLinter' => 'ArcanistExternalLinter',
@ -250,7 +248,7 @@ phutil_register_library_map(array(
'ArcanistCoffeeLintLinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistCoffeeLintLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistCommentRemoverTestCase' => 'ArcanistTestCase', 'ArcanistCommentRemoverTestCase' => 'ArcanistTestCase',
'ArcanistCommitLinter' => 'ArcanistLinter', 'ArcanistCommitLinter' => 'ArcanistLinter',
'ArcanistCommitLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistCommitLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistCommitWorkflow' => 'ArcanistWorkflow', 'ArcanistCommitWorkflow' => 'ArcanistWorkflow',
'ArcanistCompilerLikeLintRenderer' => 'ArcanistLintRenderer', 'ArcanistCompilerLikeLintRenderer' => 'ArcanistLintRenderer',
'ArcanistConduitLinter' => 'ArcanistLinter', 'ArcanistConduitLinter' => 'ArcanistLinter',
@ -273,13 +271,13 @@ phutil_register_library_map(array(
'ArcanistExternalLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistExternalLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistFeatureWorkflow' => 'ArcanistWorkflow', 'ArcanistFeatureWorkflow' => 'ArcanistWorkflow',
'ArcanistFilenameLinter' => 'ArcanistLinter', 'ArcanistFilenameLinter' => 'ArcanistLinter',
'ArcanistFilenameLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistFilenameLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistFlagWorkflow' => 'ArcanistWorkflow', 'ArcanistFlagWorkflow' => 'ArcanistWorkflow',
'ArcanistFlake8Linter' => 'ArcanistExternalLinter', 'ArcanistFlake8Linter' => 'ArcanistExternalLinter',
'ArcanistFlake8LinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistFlake8LinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistFutureLinter' => 'ArcanistLinter', 'ArcanistFutureLinter' => 'ArcanistLinter',
'ArcanistGeneratedLinter' => 'ArcanistLinter', 'ArcanistGeneratedLinter' => 'ArcanistLinter',
'ArcanistGeneratedLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistGeneratedLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistGetConfigWorkflow' => 'ArcanistWorkflow', 'ArcanistGetConfigWorkflow' => 'ArcanistWorkflow',
'ArcanistGitAPI' => 'ArcanistRepositoryAPI', 'ArcanistGitAPI' => 'ArcanistRepositoryAPI',
'ArcanistGitHookPreReceiveWorkflow' => 'ArcanistWorkflow', 'ArcanistGitHookPreReceiveWorkflow' => 'ArcanistWorkflow',
@ -299,7 +297,7 @@ phutil_register_library_map(array(
'ArcanistJSONLintLinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistJSONLintLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistJSONLintRenderer' => 'ArcanistLintRenderer', 'ArcanistJSONLintRenderer' => 'ArcanistLintRenderer',
'ArcanistJSONLinter' => 'ArcanistLinter', 'ArcanistJSONLinter' => 'ArcanistLinter',
'ArcanistJSONLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistJSONLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistJscsLinter' => 'ArcanistExternalLinter', 'ArcanistJscsLinter' => 'ArcanistExternalLinter',
'ArcanistJscsLinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistJscsLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistLandWorkflow' => 'ArcanistWorkflow', 'ArcanistLandWorkflow' => 'ArcanistWorkflow',
@ -314,12 +312,12 @@ phutil_register_library_map(array(
'ArcanistMercurialAPI' => 'ArcanistRepositoryAPI', 'ArcanistMercurialAPI' => 'ArcanistRepositoryAPI',
'ArcanistMercurialParserTestCase' => 'ArcanistTestCase', 'ArcanistMercurialParserTestCase' => 'ArcanistTestCase',
'ArcanistMergeConflictLinter' => 'ArcanistLinter', 'ArcanistMergeConflictLinter' => 'ArcanistLinter',
'ArcanistMergeConflictLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistMergeConflictLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistMissingLinterException' => 'Exception', 'ArcanistMissingLinterException' => 'Exception',
'ArcanistNoEffectException' => 'ArcanistUsageException', 'ArcanistNoEffectException' => 'ArcanistUsageException',
'ArcanistNoEngineException' => 'ArcanistUsageException', 'ArcanistNoEngineException' => 'ArcanistUsageException',
'ArcanistNoLintLinter' => 'ArcanistLinter', 'ArcanistNoLintLinter' => 'ArcanistLinter',
'ArcanistNoLintLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistNoLintLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistNoneLintRenderer' => 'ArcanistLintRenderer', 'ArcanistNoneLintRenderer' => 'ArcanistLintRenderer',
'ArcanistPEP8Linter' => 'ArcanistExternalLinter', 'ArcanistPEP8Linter' => 'ArcanistExternalLinter',
'ArcanistPEP8LinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistPEP8LinterTestCase' => 'ArcanistExternalLinterTestCase',
@ -336,7 +334,7 @@ phutil_register_library_map(array(
'ArcanistPhutilTestSkippedException' => 'Exception', 'ArcanistPhutilTestSkippedException' => 'Exception',
'ArcanistPhutilTestTerminatedException' => 'Exception', 'ArcanistPhutilTestTerminatedException' => 'Exception',
'ArcanistPhutilXHPASTLinter' => 'ArcanistBaseXHPASTLinter', 'ArcanistPhutilXHPASTLinter' => 'ArcanistBaseXHPASTLinter',
'ArcanistPhutilXHPASTLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistPhutilXHPASTLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistPuppetLintLinter' => 'ArcanistExternalLinter', 'ArcanistPuppetLintLinter' => 'ArcanistExternalLinter',
'ArcanistPuppetLintLinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistPuppetLintLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistPyFlakesLinter' => 'ArcanistExternalLinter', 'ArcanistPyFlakesLinter' => 'ArcanistExternalLinter',
@ -353,7 +351,7 @@ phutil_register_library_map(array(
'ArcanistShellCompleteWorkflow' => 'ArcanistWorkflow', 'ArcanistShellCompleteWorkflow' => 'ArcanistWorkflow',
'ArcanistSingleLintEngine' => 'ArcanistLintEngine', 'ArcanistSingleLintEngine' => 'ArcanistLintEngine',
'ArcanistSpellingLinter' => 'ArcanistLinter', 'ArcanistSpellingLinter' => 'ArcanistLinter',
'ArcanistSpellingLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistSpellingLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistStartWorkflow' => 'ArcanistPhrequentWorkflow', 'ArcanistStartWorkflow' => 'ArcanistPhrequentWorkflow',
'ArcanistStopWorkflow' => 'ArcanistPhrequentWorkflow', 'ArcanistStopWorkflow' => 'ArcanistPhrequentWorkflow',
'ArcanistSubversionAPI' => 'ArcanistRepositoryAPI', 'ArcanistSubversionAPI' => 'ArcanistRepositoryAPI',
@ -363,7 +361,7 @@ phutil_register_library_map(array(
'ArcanistTasksWorkflow' => 'ArcanistWorkflow', 'ArcanistTasksWorkflow' => 'ArcanistWorkflow',
'ArcanistTestCase' => 'ArcanistPhutilTestCase', 'ArcanistTestCase' => 'ArcanistPhutilTestCase',
'ArcanistTextLinter' => 'ArcanistLinter', 'ArcanistTextLinter' => 'ArcanistLinter',
'ArcanistTextLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistTextLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistTimeWorkflow' => 'ArcanistPhrequentWorkflow', 'ArcanistTimeWorkflow' => 'ArcanistPhrequentWorkflow',
'ArcanistTodoWorkflow' => 'ArcanistWorkflow', 'ArcanistTodoWorkflow' => 'ArcanistWorkflow',
'ArcanistUncommittedChangesException' => 'ArcanistUsageException', 'ArcanistUncommittedChangesException' => 'ArcanistUsageException',
@ -380,9 +378,9 @@ phutil_register_library_map(array(
'ArcanistXHPASTLintNamingHookTestCase' => 'ArcanistTestCase', 'ArcanistXHPASTLintNamingHookTestCase' => 'ArcanistTestCase',
'ArcanistXHPASTLintTestSwitchHook' => 'ArcanistXHPASTLintSwitchHook', 'ArcanistXHPASTLintTestSwitchHook' => 'ArcanistXHPASTLintSwitchHook',
'ArcanistXHPASTLinter' => 'ArcanistBaseXHPASTLinter', 'ArcanistXHPASTLinter' => 'ArcanistBaseXHPASTLinter',
'ArcanistXHPASTLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistXHPASTLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistXMLLinter' => 'ArcanistLinter', 'ArcanistXMLLinter' => 'ArcanistLinter',
'ArcanistXMLLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistXMLLinterTestCase' => 'ArcanistLinterTestCase',
'CSharpToolsTestEngine' => 'XUnitTestEngine', 'CSharpToolsTestEngine' => 'XUnitTestEngine',
'ComprehensiveLintEngine' => 'ArcanistLintEngine', 'ComprehensiveLintEngine' => 'ArcanistLintEngine',
'NoseTestEngine' => 'ArcanistUnitTestEngine', 'NoseTestEngine' => 'ArcanistUnitTestEngine',

View file

@ -1,14 +0,0 @@
<?php
abstract class ArcanistArcanistLinterTestCase extends ArcanistLinterTestCase {
protected function getLink($method) {
// This could be converted to trait from ArcanistTestCase.
$arcanist_project = 'PHID-APRJ-703e0b140530f17ede30';
return
'https://secure.phabricator.com/diffusion/symbol/'.$method.
'/?lang=php&projects='.$arcanist_project.
'&jump=true&context='.get_class($this);
}
}

View file

@ -1,6 +1,6 @@
<?php <?php
final class ArcanistChmodLinterTestCase extends ArcanistArcanistLinterTestCase { final class ArcanistChmodLinterTestCase extends ArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
$this->executeTestsInDirectory(dirname(__FILE__).'/chmod/'); $this->executeTestsInDirectory(dirname(__FILE__).'/chmod/');

View file

@ -1,7 +1,6 @@
<?php <?php
final class ArcanistCommitLinterTestCase final class ArcanistCommitLinterTestCase extends ArcanistLinterTestCase {
extends ArcanistArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
return $this->executeTestsInDirectory(dirname(__FILE__).'/commit/'); return $this->executeTestsInDirectory(dirname(__FILE__).'/commit/');

View file

@ -1,7 +1,6 @@
<?php <?php
final class ArcanistFilenameLinterTestCase final class ArcanistFilenameLinterTestCase extends ArcanistLinterTestCase {
extends ArcanistArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
$this->executeTestsInDirectory(dirname(__FILE__).'/filename/'); $this->executeTestsInDirectory(dirname(__FILE__).'/filename/');

View file

@ -1,7 +1,6 @@
<?php <?php
final class ArcanistGeneratedLinterTestCase final class ArcanistGeneratedLinterTestCase extends ArcanistLinterTestCase {
extends ArcanistArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
return $this->executeTestsInDirectory(dirname(__FILE__).'/generated/'); return $this->executeTestsInDirectory(dirname(__FILE__).'/generated/');

View file

@ -1,6 +1,6 @@
<?php <?php
final class ArcanistJSONLinterTestCase extends ArcanistArcanistLinterTestCase { final class ArcanistJSONLinterTestCase extends ArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
$this->executeTestsInDirectory(dirname(__FILE__).'/jsonlint/'); $this->executeTestsInDirectory(dirname(__FILE__).'/jsonlint/');

View file

@ -1,7 +1,6 @@
<?php <?php
final class ArcanistMergeConflictLinterTestCase final class ArcanistMergeConflictLinterTestCase extends ArcanistLinterTestCase {
extends ArcanistArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
$this->executeTestsInDirectory(dirname(__FILE__).'/mergeconflict/'); $this->executeTestsInDirectory(dirname(__FILE__).'/mergeconflict/');

View file

@ -1,7 +1,6 @@
<?php <?php
final class ArcanistNoLintLinterTestCase final class ArcanistNoLintLinterTestCase extends ArcanistLinterTestCase {
extends ArcanistArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
return $this->executeTestsInDirectory(dirname(__FILE__).'/nolint/'); return $this->executeTestsInDirectory(dirname(__FILE__).'/nolint/');

View file

@ -1,7 +1,6 @@
<?php <?php
final class ArcanistPhutilXHPASTLinterTestCase final class ArcanistPhutilXHPASTLinterTestCase extends ArcanistLinterTestCase {
extends ArcanistArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
$linter = new ArcanistPhutilXHPASTLinter(); $linter = new ArcanistPhutilXHPASTLinter();

View file

@ -1,7 +1,6 @@
<?php <?php
final class ArcanistSpellingLinterTestCase final class ArcanistSpellingLinterTestCase extends ArcanistLinterTestCase {
extends ArcanistArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
$linter = new ArcanistSpellingLinter(); $linter = new ArcanistSpellingLinter();

View file

@ -1,6 +1,6 @@
<?php <?php
final class ArcanistTextLinterTestCase extends ArcanistArcanistLinterTestCase { final class ArcanistTextLinterTestCase extends ArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
$this->executeTestsInDirectory(dirname(__FILE__).'/text/'); $this->executeTestsInDirectory(dirname(__FILE__).'/text/');

View file

@ -1,7 +1,6 @@
<?php <?php
final class ArcanistXHPASTLinterTestCase final class ArcanistXHPASTLinterTestCase extends ArcanistLinterTestCase {
extends ArcanistArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
$this->executeTestsInDirectory(dirname(__FILE__).'/xhpast/'); $this->executeTestsInDirectory(dirname(__FILE__).'/xhpast/');

View file

@ -4,7 +4,7 @@
* Test cases were mostly taken from * Test cases were mostly taken from
* https://git.gnome.org/browse/libxml2/tree/test. * https://git.gnome.org/browse/libxml2/tree/test.
*/ */
final class ArcanistXMLLinterTestCase extends ArcanistArcanistLinterTestCase { final class ArcanistXMLLinterTestCase extends ArcanistLinterTestCase {
public function testLinter() { public function testLinter() {
$this->executeTestsInDirectory(dirname(__FILE__).'/xml/'); $this->executeTestsInDirectory(dirname(__FILE__).'/xml/');