Skip to content

Commit 95d1f9c

Browse files
authored
Merge pull request #1645 from brackendawson/no-parallel-suite
Document suite's lack of support for t.Parallel
2 parents 5dc934f + fed9ee6 commit 95d1f9c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ You can use the [mockery tool](https://vektra.github.io/mockery/latest/) to auto
223223

224224
[`suite`](https://pkg.go.dev/github.com/stretchr/testify/suite "API documentation") package
225225
-----------------------------------------------------------------------------------------
226+
> [!WARNING]
227+
> The suite package does not support parallel tests. See [#934](https://github.com/stretchr/testify/issues/934).
226228
227229
The `suite` package provides functionality that you might be used to from more common object-oriented languages. With it, you can build a testing suite as a struct, build setup/teardown methods and testing methods on your struct, and run them with 'go test' as per normal.
228230

suite/doc.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// or individual tests (depending on which interface(s) you
66
// implement).
77
//
8+
// The suite package does not support parallel tests. See [issue 934].
9+
//
810
// A testing suite is usually built by first extending the built-in
911
// suite functionality from suite.Suite in testify. Alternatively,
1012
// you could reproduce that logic on your own if you wanted (you
@@ -63,4 +65,6 @@
6365
// func TestExampleTestSuite(t *testing.T) {
6466
// suite.Run(t, new(ExampleTestSuite))
6567
// }
68+
//
69+
// [issue 934]: https://github.com/stretchr/testify/issues/934
6670
package suite

0 commit comments

Comments
 (0)