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

cv-library / Test2-Tools-xUnit / 49
100%

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

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

Jobs
ID Job ID Ran Files Coverage
1 49.1 11 May 2020 11:57PM UTC 0
100.0
Travis Job 49.1
2 49.2 11 May 2020 11:57PM UTC 0
100.0
Travis Job 49.2
3 49.3 11 May 2020 11:57PM UTC 0
100.0
Travis Job 49.3
4 49.4 11 May 2020 11:57PM UTC 0
100.0
Travis Job 49.4
5 49.5 11 May 2020 11:57PM UTC 0
100.0
Travis Job 49.5
6 49.6 11 May 2020 11:58PM UTC 0
100.0
Travis Job 49.6
7 49.7 11 May 2020 11:58PM UTC 0
100.0
Travis Job 49.7
Source Files on build 49
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #49
  • Pull Request #9
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

© 2025 Coveralls, Inc