forked from gotestyourself/gotestsum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow gotestsum to rerun tests that panic
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -562,6 +562,21 @@ func (e *Execution) HasPanic() bool { | |
return false | ||
} | ||
|
||
func (e *Execution) FullPackages() []Package { | ||
This comment has been minimized.
Sorry, something went wrong.
ddelnano
Author
Owner
|
||
ps := []Package{} | ||
for _, p := range e.packages { | ||
ps = append(ps, *p) | ||
} | ||
return ps | ||
} | ||
|
||
func (e *Execution) PrintPackages() { | ||
fmt.Println("Print packages") | ||
for k, p := range e.packages { | ||
fmt.Printf("Package '%s' has content %v\n", k, *p) | ||
} | ||
} | ||
|
||
func (e *Execution) end() []TestEvent { | ||
e.done = true | ||
var result []TestEvent // nolint: prealloc | ||
|
This was part of my debugging to as I tested this change.