Skip to content

aemengo/gswt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1589fda · Jan 17, 2022

History

49 Commits
Jun 29, 2021
Aug 8, 2021
Jun 30, 2021
Jan 17, 2022
Aug 8, 2021
Nov 3, 2021
Jan 17, 2022
May 22, 2021
Jun 30, 2021
Aug 9, 2021
Sep 14, 2021
Sep 14, 2021

Repository files navigation

gswt

A collection of tools to make life easier 😌

go-swt

Installation

# go-swt
go get github.com/aemengo/gswt/cmd/go-swt

# gh-swt
go get github.com/aemengo/gswt/cmd/gh-swt

Usage

go-swt

go-swt (Golang stop wasting time) reads stdin and launches a terminal UI for viewing golang test failures. Go test must be run in verbose mode.

go test -v | go-swt

gh-swt

gh-swt (GitHub stop wasting time) launches a terminal UI for viewing GitHub PR checks and logs. Requires GITHUB_TOKEN environment variable.

export GITHUB_TOKEN=<my-github-token>
gh-swt buildpacks/pack 1000

Notes

  • Golang test parsing assumes the sclevine/spec BDD test library. Specs must be written with the report.Terminal{} spec reporter, like so:

    func TestObject(t *testing.T) {
      spec.Run(t, "object", testObject, spec.Report(report.Terminal{}))
    }
  • Hitting TAB will use your shell's $EDITOR variable to view original log output

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages