Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mfridman/tparse package to analyze test output #25

Open
atc0005 opened this issue Nov 18, 2019 · 1 comment
Open

Use mfridman/tparse package to analyze test output #25

atc0005 opened this issue Nov 18, 2019 · 1 comment
Assignees

Comments

@atc0005
Copy link
Owner

atc0005 commented Nov 18, 2019

https://github.com/mfridman/tparse

One for way down the line once I've learned how to implement proper testing for the codebase. Figured it was worth noting now.

@atc0005 atc0005 self-assigned this Nov 18, 2019
@atc0005
Copy link
Owner Author

atc0005 commented Nov 18, 2019

Example usage:

https://github.com/psampaz/gothanks/blob/dc2fc7cb2e27c5022f0ba1cea332355819b5d1e8/.github/workflows/ci.yml#L53

  tests:
    strategy:
      matrix:
        go-version: [1.13.x]
        platform: [ubuntu-latest, macos-latest]  
    name: tests
    runs-on: ${{ matrix.platform }}
    steps:
      - uses: actions/checkout@v1
        with:
          fetch-depth: 1
      - uses: actions/setup-go@v1
        with:
          go-version: ${{ matrix.go-version }}
      - run: |
          go get -u github.com/mfridman/tparse
          go test -v -race -cover -json ./... | $(go env GOPATH)/bin/tparse -all

@atc0005 atc0005 transferred this issue from atc0005/elbow Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant