Skip to content

Commit 84d7c28

Browse files
authored
Update documentation for TestStepResult.message (#315)
Better describe TestStepResult.message contents
1 parent 6debbd6 commit 84d7c28

File tree

8 files changed

+10
-8
lines changed

8 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
9+
### Changed
10+
- Update documentation for `TestStepResult.message` ([#315](https://github.com/cucumber/messages/pull/315))
911

1012
## [28.1.0] - 2025-07-21
1113
### Added

dotnet/Cucumber.Messages/generated/TestStepResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public sealed class TestStepResult
1818
{
1919
public Duration Duration { get; private set; }
2020
/**
21-
* An arbitrary bit of information that explains this result. This can be a stack trace of anything else.
21+
* An arbitrary bit of information that explains this result. If there was an exception, this should include a stringified representation of it including type, message and stack trace (the exact format will vary by platform).
2222
*/
2323
public string Message { get; private set; }
2424
public TestStepResultStatus Status { get; private set; }

java/src/generated/java/io/cucumber/messages/types/TestStepResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public Duration getDuration() {
3535
}
3636

3737
/**
38-
* An arbitrary bit of information that explains this result. This can be a stack trace of anything else.
38+
* An arbitrary bit of information that explains this result. If there was an exception, this should include a stringified representation of it including type, message and stack trace (the exact format will vary by platform).
3939
*/
4040
public Optional<String> getMessage() {
4141
return Optional.ofNullable(message);

jsonschema/src/TestStepResult.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"message": {
1414
"type": "string",
15-
"description": "An arbitrary bit of information that explains this result. This can be a stack trace of anything else."
15+
"description": "An arbitrary bit of information that explains this result. If there was an exception, this should include a stringified representation of it including type, message and stack trace (the exact format will vary by platform)."
1616
},
1717
"status": {
1818
"enum": [
@@ -32,4 +32,4 @@
3232
}
3333
},
3434
"type": "object"
35-
}
35+
}

perl/lib/Cucumber/Messages.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4665,7 +4665,7 @@ has duration =>
46654665

46664666
=head4 message
46674667
4668-
An arbitrary bit of information that explains this result. This can be a stack trace of anything else.
4668+
An arbitrary bit of information that explains this result. If there was an exception, this should include a stringified representation of it including type, message and stack trace (the exact format will vary by platform).
46694669
=cut
46704670

46714671
has message =>

php/src-generated/TestStepResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(
2828
public readonly Duration $duration = new Duration(),
2929

3030
/**
31-
* An arbitrary bit of information that explains this result. This can be a stack trace of anything else.
31+
* An arbitrary bit of information that explains this result. If there was an exception, this should include a stringified representation of it including type, message and stack trace (the exact format will vary by platform).
3232
*/
3333
public readonly ?string $message = null,
3434
public readonly TestStepResult\Status $status = TestStepResult\Status::UNKNOWN,

python/src/cucumber_messages/_messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ class TestStepResult:
650650
duration: Duration
651651
status: TestStepResultStatus
652652
exception: Optional[Exception] = None # Exception thrown while executing this step, if any.
653-
message: Optional[str] = None # An arbitrary bit of information that explains this result. This can be a stack trace of anything else.
653+
message: Optional[str] = None # An arbitrary bit of information that explains this result. If there was an exception, this should include a stringified representation of it including type, message and stack trace (the exact format will vary by platform).
654654

655655

656656
@dataclass

ruby/lib/cucumber/messages/test_step_result.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class TestStepResult < Message
1111
attr_reader :duration
1212

1313
##
14-
# An arbitrary bit of information that explains this result. This can be a stack trace of anything else.
14+
# An arbitrary bit of information that explains this result. If there was an exception, this should include a stringified representation of it including type, message and stack trace (the exact format will vary by platform).
1515
##
1616
attr_reader :message
1717

0 commit comments

Comments
 (0)