NAME

WebService::TeamCity::Entity::TestOccurrence - A single TeamCity test occurrence

VERSION

version 0.04

SYNOPSIS

my $build = ...;
my $tests = $build->test_occurrences;

while ( my $test = $tests->next ) {
    print $test->name, "\n" if $test->failed;
}

DESCRIPTION

This class represents a single TeamCity test occurrence.

API

This class has the following methods:

$test->href

Returns the REST API URI for the test occurrence, without the scheme and host.

$test->name

Returns the test occurrence's name.

$test->description

Returns the test occurrence's description.

$test->id

Returns the test occurrence's id string.

$test->status

Returns the test occurrence's status string.

$test->passed

Returns true if the test occurrence passed.

$test->failed

Returns true if the test occurrence failed.

$test->unknown

Returns true if the test occurrence neither passed nor failed.

$test->build

Returns the WebService::TeamCity::Entity::Build for the test occurrence.

$test->duration

Returns the test's duration in milliseconds.

$test->details

Returns details about the test, if any exist. The contents of this field depend on the details of how the build ran.

SUPPORT

Bugs may be submitted through https://github.com/maxmind/WebService-TeamCity/issues.

AUTHOR

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by MaxMind, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.