---
name: "Test::BDD::Cucumber::Model::Result"
section: "3pm"
platform: "linux"
package: "libtest-bdd-cucumber-perl"
version: "0.87-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Test::BDD::Cucumber::Model::Result"
---

# Test::BDD::Cucumber::Model::Result(3pm)

Encapsulates a result state

## NAME

Test::BDD::Cucumber::Model::Result - Encapsulates a result state

## VERSION

version 0.87

## DESCRIPTION

Encapsulation of result state - whether that's for a step, scenario, or feature

## ATTRIBUTES

### result

Enum of: `"passing"`, `"failing"`, `"pending"` or `"undefined"`. `"pending"` is used if there was any TODO output from a test, and `"undefined"` for a test that wasn't run, either due to no matching step, or because a previous step failed.

### output

The underlying test-output that contributed to a result.

## METHODS

### from\_children

Collates the Result objects you pass in, and returns one that encompasses all of them.

As they may be varied, it runs through them in order of `"failing"`, `"undefined"`, `"pending"` and `"passing"` - the first it finds is the overall result. The empty set passes.
