-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Go 1.7 subtests so suites can properly nest
This removes dependencies on Go Testing Internals and also enables test methods within a suite to have subtests. Fixes #346
- Loading branch information
1 parent
b8c9b4e
commit 3104bf5
Showing
2 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3104bf5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change breaks the parallel tests.
I would want the TearDownSuite() to be called after all tests run completed. This change breaks that and cause TearDownSuite() to be called right after SetupSuite() and before any tests runs.
Here is sample code to repro the bug:
The output of above tests is:
SetupSuite
TearDownSuite
SetupTest
SetupTest
TearDownTest
TearDownTest