This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stricter error handling in tests (#404)
* Appease the linter * Transparently handle errors from go-expect calls Tests that used to invoke methods on a `*expect.Console` instance now invoke same-named methods that have error handling built in so that the associated test is properly aborted if any of the methods happen to fail. This kind of error handling was easier to add than adding explicit error handling to every `c.Expect*()` and `c.Send*()` call site. * Improve stack traces in test failures * Upgrade go-expect and associated libraries (#405) * Upgrade go-expect and associated libraries * Explicitly test with supported Go versions * Install a Go problem matcher * Have skipped tests show up as warnings in Actions annotations * Disable some flakey tests * Re-arrange skipping tests * skip a test flakey on macos-latest The test fails with: select_test.go:209: SendLine("") = write /dev/ptmx: input/output error I cannot reproduce this failure on macOS locally. https://github.com/AlecAivazis/survey/runs/5222853435 * Few more linter cleanups * Add more I/O error handling * fix import * windows err shadowing
- Loading branch information
Showing
135 changed files
with
16,907 additions
and
1,452 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "go", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\\s*(.+\\.go):(\\d+):(?:(\\d+):)? (?:(warning): )?(.*)", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"severity": 4, | ||
"message": 5 | ||
} | ||
] | ||
} | ||
] | ||
} |
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
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
Oops, something went wrong.