• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cv-library / Test2-Tools-xUnit
100%

Build:
DEFAULT BRANCH: master
Repo Added 09 Mar 2018 06:22PM UTC
Files 1
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 0.006
  • master
  • v0.001
  • v0.002
  • v0.003
  • v0.004
  • v0.005

pending completion
49

Pull #9

travis-ci

Diab Jerius
Allow inheritance of test classes.  For example,

  package Parent;
  use Test2::Tools::xUnit;
  use Test2::V0;

  sub setup : BeforeAll { };
  sub cleanup : AfterAll { };

  sub test0 : Test { };

  package Child;
  use parent Parent;

  sub setup : BeforeAll { };
  sub cleanup : AfterAll { };

  sub test1 : Test { };

  done_testing;

will run

  Parent::setup;
  Child::setup;

  # arbitrary order
  test0;
  test1;

  # yes, this order looks inverted, but that's the order it's run
  Parent::cleanup;
  Child::cleanup;

Parent calss teardown methods are always run before child's, as they are registered
with Test2 first. Conventions can remediate this, for instance,

   package Parent;

   sub AfterAll { } # no attributes!

   package Child;

   use parent 'Parent';

   sub AfterAll :AfterAll {

      # perform Child teardown
      ...

      # move up the inheritance chain
      Child->SUPER::AfterAll;
   }
Pull Request #9:

58 of 58 relevant lines covered (100.0%)

164.02 hits per line

Relevant lines Covered
Build:
Build:
58 RELEVANT LINES 58 COVERED LINES
164.02 HITS PER LINE
Source Files on master
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
49 master Allow inheritance of test classes. For example, package Parent; use Test2::Tools::xUnit; use Test2::V0; sub setup : BeforeAll { }; sub cleanup : AfterAll { }; sub test0 : Test { }; package Child; use parent Parent; sub setu... Pull #9 11 May 2020 11:57PM UTC Diab Jerius travis-ci pending completion  
48 0.006 Switch to gathering from git push 30 Oct 2018 08:44AM UTC colinnewell travis-ci pending completion  
47 master Switch to gathering from git push 30 Oct 2018 08:42AM UTC colinnewell travis-ci pending completion  
46 master Release prep for new release push 29 Oct 2018 01:47PM UTC colinnewell travis-ci pending completion  
45 master Removed redundant import in the examples/hello.t Pull #6 26 Apr 2018 04:33PM UTC web-flow travis-ci pending completion  
44 v0.005 Bump to v0.005 push 28 Mar 2018 04:35PM UTC diocles travis-ci pending completion  
43 master Bump to v0.005 push 28 Mar 2018 04:34PM UTC diocles travis-ci pending completion  
42 master Declare Perl v5.12 dependency Fixes #3. push 28 Mar 2018 01:02PM UTC diocles travis-ci pending completion  
41 master Update Changes file push 28 Mar 2018 11:59AM UTC diocles travis-ci pending completion  
40 master Test and fix attributes added by parent push 28 Mar 2018 11:58AM UTC diocles travis-ci pending completion  
See All Builds (43)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc