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

cv-library / Test2-Tools-xUnit / 49 / 4
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 11 May 2020 11:57PM UTC
Files 1
Run time 0s
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

11 May 2020 11:57PM UTC coverage: 100.0%. First build
49.4

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:

59 of 59 relevant lines covered (100.0%)

23.46 hits per line

Source Files on job 49.4
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6
  • Travis Job 49.4
  • c1755593 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