NAME

Google::Devtools::Resultstore::V2::TestSuite - Compiled Protocol Buffers messages for google/devtools/resultstore/v2/test_suite.proto

SYNOPSIS

use Google::Devtools::Resultstore::V2::TestSuite;

my $msg = Google::Devtools::Resultstore::V2::TestSuite::TestSuite->new({
    suite_name => $suite_name,
    tests => $tests,
    failures => $failures,
    errors => $errors,
});

# Read or update a field
my $val = $msg->suite_name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Devtools::Resultstore::V2::TestSuite::TestSuite->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/devtools/resultstore/v2/test_suite.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Devtools::Resultstore::V2::TestSuite::TestSuite

The result of running a test suite, as reported in a <testsuite> element of an XML log.

Inherits from Protobuf::Message.

Accessors

  • $msg->suite_name() / $msg->suite_name($value)

    Type: String

    The full name of this suite, as reported in the name attribute. For Java tests, this is normally the fully qualified class name. Eg. "com.google.common.hash.BloomFilterTest".

  • $msg->tests() / $msg->tests($value)

    Type: Message (Google::Devtools::Resultstore::V2::TestSuite::Test)

    The results of the test cases and test suites contained in this suite, as reported in the <testcase> and <testsuite> elements contained within this <testsuite>.

  • $msg->failures() / $msg->failures($value)

    Type: Message (Google::Devtools::Resultstore::V2::TestSuite::TestFailure)

    Failures reported in <failure> elements within this <testsuite>.

  • $msg->errors() / $msg->errors($value)

    Type: Message (Google::Devtools::Resultstore::V2::TestSuite::TestError)

    Errors reported in <error> elements within this <testsuite>.

  • $msg->timing() / $msg->timing($value)

    Type: Message (Google::Devtools::Resultstore::V2::Common::Timing)

    The timing for the entire TestSuite, as reported by the time attribute.

  • $msg->properties() / $msg->properties($value)

    Type: Message (Google::Devtools::Resultstore::V2::Common::Property)

    Arbitrary name-value pairs, as reported in custom attributes or in a <properties> element within this <testsuite>. Multiple properties are allowed with the same key. Properties will be returned in lexicographical order by key.

  • $msg->files() / $msg->files($value)

    Type: Message (Google::Devtools::Resultstore::V2::File::File)

    Files produced by this test suite, as reported by undeclared output annotations. The file IDs must be unique within this list. Duplicate file IDs will result in an error. Files will be returned in lexicographical order by ID.

Google::Devtools::Resultstore::V2::TestSuite::Test

The result of running a test case or test suite. JUnit3 TestDecorators are represented as a TestSuite with a single test.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Resultstore::V2::TestSuite::TestCase

The result of running a test case, as reported in a <testcase> element of an XML log.

Inherits from Protobuf::Message.

Accessors

  • $msg->case_name() / $msg->case_name($value)

    Type: String

    The name of the test case, as reported in the name attribute. For Java, this is normally the method name. Eg. "testBasic".

  • $msg->class_name() / $msg->class_name($value)

    Type: String

    The name of the class in which the test case was defined, as reported in the classname attribute. For Java, this is normally the fully qualified class name. Eg. "com.google.common.hash.BloomFilterTest".

  • $msg->result() / $msg->result($value)

    Type: Enum (Google::Devtools::Resultstore::V2::TestCase::Result)

    An enum reported in the result attribute that is used in conjunction with failures and errors below to report the outcome.

  • $msg->failures() / $msg->failures($value)

    Type: Message (Google::Devtools::Resultstore::V2::TestSuite::TestFailure)

    Failures reported in <failure> elements within this <testcase>.

  • $msg->errors() / $msg->errors($value)

    Type: Message (Google::Devtools::Resultstore::V2::TestSuite::TestError)

    Errors reported in <error> elements within this <testcase>.

  • $msg->timing() / $msg->timing($value)

    Type: Message (Google::Devtools::Resultstore::V2::Common::Timing)

    The timing for the TestCase, as reported by the time attribute.

  • $msg->properties() / $msg->properties($value)

    Type: Message (Google::Devtools::Resultstore::V2::Common::Property)

    Arbitrary name-value pairs, as reported in custom attributes or in a <properties> element within this <testcase>. Multiple properties are allowed with the same key. Properties will be returned in lexicographical order by key.

  • $msg->files() / $msg->files($value)

    Type: Message (Google::Devtools::Resultstore::V2::File::File)

    Files produced by this test case, as reported by undeclared output annotations. The file IDs must be unique within this list. Duplicate file IDs will result in an error. Files will be returned in lexicographical order by ID.

  • $msg->retry_number() / $msg->retry_number($value)

    Type: Int32

    The 0-indexed retry number of the test case. A value of `0` may indicate either that this is the first in a series of retries, or that no retries were requested.

  • $msg->repeat_number() / $msg->repeat_number($value)

    Type: Int32

    The 0-indexed repeat number of the test case. A value of `0` may indicate either that this is the first in a series of repeats, or that no repeats were requested.

Enum: TestCase::Result

  • RESULT_UNSPECIFIED => 0

  • COMPLETED => 1

  • INTERRUPTED => 2

  • CANCELLED => 3

  • FILTERED => 4

  • SKIPPED => 5

  • SUPPRESSED => 6

Google::Devtools::Resultstore::V2::TestSuite::TestFailure

Represents a violated assertion, as reported in a <failure> element within a <testcase>. Some languages allow assertions to be made without stopping the test case when they're violated, leading to multiple TestFailures. For Java, multiple TestFailures are used to represent a chained exception.

Inherits from Protobuf::Message.

Accessors

  • $msg->failure_message() / $msg->failure_message($value)

    Type: String

    The exception message reported in the message attribute. Typically short, but may be multi-line. Eg. "Expected 'foo' but was 'bar'".

  • $msg->exception_type() / $msg->exception_type($value)

    Type: String

    The type of the exception being thrown, reported in the type attribute. Eg: "org.junit.ComparisonFailure"

  • $msg->stack_trace() / $msg->stack_trace($value)

    Type: String

    The stack trace reported as the content of the <failure> element, often in a CDATA block. This contains one line for each stack frame, each including a method/function name, a class/file name, and a line number. Most recent call is usually first, but not for Python stack traces. May contain the exception_type and message.

  • $msg->expected() / $msg->expected($value)

    Type: String

    The expected values.

    These values can be diffed against the actual values. Often, there is just one actual and one expected value. If there is more than one, they should be compared as an unordered collection.

  • $msg->actual() / $msg->actual($value)

    Type: String

    The actual values.

    These values can be diffed against the expected values. Often, there is just one actual and one expected value. If there is more than one, they should be compared as an unordered collection.

Google::Devtools::Resultstore::V2::TestSuite::TestError

Represents an exception that prevented a test case from completing, as reported in an <error> element within a <testcase>. For Java, multiple TestErrors are used to represent a chained exception.

Inherits from Protobuf::Message.

Accessors

  • $msg->error_message() / $msg->error_message($value)

    Type: String

    The exception message, as reported in the message attribute. Typically short, but may be multi-line. Eg. "argument cannot be null".

  • $msg->exception_type() / $msg->exception_type($value)

    Type: String

    The type of the exception being thrown, reported in the type attribute. For Java, this is a fully qualified Throwable class name. Eg: "java.lang.IllegalArgumentException"

  • $msg->stack_trace() / $msg->stack_trace($value)

    Type: String

    The stack trace reported as the content of the <error> element, often in a CDATA block. This contains one line for each stack frame, each including a method/function name, a class/file name, and a line number. Most recent call is usually first, but not for Python stack traces. May contain the exception_type and message.

SEE ALSO

Protobuf, Protobuf::Message, Google::Devtools::Resultstore::V2::TestSuite::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.