소스 검색

More-or-less done DZILizing the module

George S. Baugh 11 년 전
부모
커밋
8e2680d553
3개의 변경된 파일65개의 추가작업 그리고 8개의 파일을 삭제
  1. 57 1
      dist.ini
  2. 8 6
      lib/TestRail/API.pm
  3. 0 1
      perlcriticrc

+ 57 - 1
dist.ini

@@ -16,8 +16,64 @@ homepage          = https://github.com/teodesian/TestRail-Perl
 [@Basic]
 
 [@TestingMania]
-critic_config = perlcriticrc
+disable = Test::Perl::Critic
+; Test::Version is more or less incompatible with the Perl::Critic tests,
+; as the auto-inserter goes before stricture.
+; this defeats the purpose of only changing the version in one place, which is the point of dzil
+
+;lol, probably should do a pull request to add methods
 [Test::PodSpelling]
+stopwords = GETTERS
+stopwords = TESTSUITE
+stopwords = TestSuite
+stopwords = apiurl
+stopwords = cPanel
+stopwords = createMilestone
+stopwords = createPlan
+stopwords = createProject
+stopwords = createRun
+stopwords = createTestSuite
+stopwords = deleteCase
+stopwords = deleteMilestone
+stopwords = deletePlan
+stopwords = deleteProject
+stopwords = deleteRun
+stopwords = deleteSection
+stopwords = deleteTestSuite
+stopwords = getCaseByID
+stopwords = getCaseByName
+stopwords = getCaseTypeByName
+stopwords = getCaseTypes
+stopwords = getCases
+stopwords = getMilestoneByID
+stopwords = getMilestoneByName
+stopwords = getMilestones
+stopwords = getPlanByID
+stopwords = getPlanByName
+stopwords = getPlans
+stopwords = getProjectByID
+stopwords = getProjectByName
+stopwords = getProjects
+stopwords = getRunByID
+stopwords = getRunByName
+stopwords = getRuns
+stopwords = getSectionByID
+stopwords = getSectionByName
+stopwords = getSections
+stopwords = getTestByID
+stopwords = getTestByName
+stopwords = getTestResults
+stopwords = getTestSuiteByID
+stopwords = getTestSuiteByName
+stopwords = getTestSuites
+stopwords = getTests
+stopwords = getUsers
+stopwords = stepResult
+stopwords = testsuites
+stopwords = api
+stopwords = ipsa
+stopwords = loquiter
+stopwords = testsuite
 
 [PkgVersion]
 [AutoPrereqs]

+ 8 - 6
lib/TestRail/API.pm

@@ -7,6 +7,7 @@ package TestRail::API;
 
     use TestRail::API;
 
+    my ($username,$password,$host) = ('foo','bar','testlink.baz.foo');
     my $tr = TestRail::API->new($username, $password, $host);
 
 =head1 DESCRIPTION
@@ -16,10 +17,11 @@ It is by no means exhaustively implementing every TestRail API function.
 
 =cut
 
-
 use 5.010;
+
 use strict;
 use warnings;
+
 use Carp;
 use Scalar::Util 'reftype';
 use Clone 'clone';
@@ -40,7 +42,7 @@ Creates new C<TestRail::API> object.
 
 =item STRING C<API URL> - base url for your TestRail api server.
 
-=item STRING C<USER> - Your testRail User.
+=item STRING C<USER> - Your TestRail User.
 
 =item STRING C<PASSWORD> - Your TestRail password.
 
@@ -473,7 +475,7 @@ Gets the testsuite with the given ID.
 
 =over 4
 
-=item STRING C<TESTSUITE_ID> - Testsuite ID.
+=item STRING C<TESTSUITE_ID> - TestSuite ID.
 
 =back
 
@@ -500,7 +502,7 @@ Creates a section.
 
 =item INTEGER C<PROJECT ID> - Parent Project ID.
 
-=item INTEGER C<SUITE ID> - Parent Testsuite ID.
+=item INTEGER C<SUITE ID> - Parent TestSuite ID.
 
 =item STRING C<NAME> - desired section name.
 
@@ -992,7 +994,7 @@ Create a run.
 
 =item INTEGER C<MILESTONE_ID> (optional) - ID of milestone
 
-=item ARRAYREF C<ENTRIES> (optional) - New Runs to initially populate the plan with -- See TestLink API documentation for more advanced inputs here.
+=item ARRAYREF C<ENTRIES> (optional) - New Runs to initially populate the plan with -- See TestRail API documentation for more advanced inputs here.
 
 =back
 
@@ -1230,7 +1232,7 @@ Gets specified milestone by ID.
 
 =back
 
-Returns milestione definition HASHREF.
+Returns milestone definition HASHREF.
 
     $tr->getMilestoneByID(2);
 

+ 0 - 1
perlcriticrc

@@ -1 +0,0 @@
-severity = 4