Skip to content

Commit 119f1d8

Browse files
committed
note that AttachProgressReporter is an experimental feature
1 parent ae8c900 commit 119f1d8

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

core_dsl.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,8 @@ func DeferCleanup(args ...interface{}) {
775775
/*
776776
AttachProgressReporter allows you to register a function that will be called whenever Ginkgo generates a Progress Report. The contents returned by the function will be included in the report.
777777
778+
**This is an experimental feature and the public-facing interface may change in a future minor version of Ginkgo**
779+
778780
Progress Reports are generated:
779781
- whenever the user explicitly requests one (via `SIGINFO` or `SIGUSR1`)
780782
- on nodes decorated with PollProgressAfter

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,6 +2683,8 @@ In addition to these formal Progress Reports, Ginkgo tracks whenever a node begi
26832683

26842684
#### Attaching Additional Information to Progress Reports
26852685

2686+
**This section describes an experimental feature and the public-facing interface may change in a future minor version of Ginkgo**
2687+
26862688
Ginkgo also allows you to attach Progress Report providers to provide additional information when a progress report is generated. For example, these could query the system under test for diagnostic information about its internal state and report back. You attach these providers via `AttachProgressReporter`. For example:
26872689

26882690
```go

ginkgo_t_dsl.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func GinkgoT(optionalOffset ...int) FullGinkgoTInterface {
3636
}
3737

3838
/*
39-
The interface returned by GinkgoT(). This covers most of the methods in the testing package's T.
39+
The portion of the interface returned by GinkgoT() that maps onto methods in the testing package's T.
4040
*/
4141
type GinkgoTInterface interface {
4242
Cleanup(func())
@@ -60,6 +60,9 @@ type GinkgoTInterface interface {
6060
TempDir() string
6161
}
6262

63+
/*
64+
Additional methods returned by GinkgoT() that provide deeper integration points into Ginkgo
65+
*/
6366
type FullGinkgoTInterface interface {
6467
GinkgoTInterface
6568

0 commit comments

Comments
 (0)