---
name: "TAP::Formatter::Session"
section: "3perl"
platform: "linux"
package: "perl"
version: "5.44.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/TAP::Formatter::Session/3perl"
---

# TAP::Formatter::Session(3perl)

Abstract base class for harness output delegate

## NAME

TAP::Formatter::Session - Abstract base class for harness output delegate

## VERSION

Version 3.52

## METHODS

### Class Methods

*"new"*

```
 my %args = (
    formatter => $self,
 )
 my $harness = TAP::Formatter::Console::Session->new( \%args );
```

The constructor returns a new `"TAP::Formatter::Console::Session"` object.

- •

  `"formatter"`

- •

  `"parser"`

- •

  `"name"`

- •

  `"show_count"`

*"header"*

Output test preamble

*"result"*

Called by the harness for each line of TAP it receives.

*"close\_test"*

Called to close a test session.

*"clear\_for\_close"*

Called by `"close_test"` to clear the line showing test progress, or the parallel test ruler, prior to printing the final test result.

*"time\_report"*

Return a formatted string about the elapsed (wall-clock) time and about the consumed CPU time.
