All Projects → mfridman → Tparse

mfridman / Tparse

Licence: mit
CLI tool for analyzing and summarizing go test output. Pipe friendly. CI/CD friendly.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Tparse

Telegraf-Test
Telegraf Test - Simple Test ToolKit of Telegram Bots
Stars: ✭ 22 (-95.06%)
Mutual labels:  test, testing-tools
xray-action
... a GitHub action to import test results into "Xray" - A complete Test Management tool for Jira.
Stars: ✭ 16 (-96.4%)
Mutual labels:  test, testing-tools
IO-TESTER
A functional test framework
Stars: ✭ 32 (-92.81%)
Mutual labels:  test, testing-tools
Testfx
MSTest V2 framework and adapter
Stars: ✭ 391 (-12.13%)
Mutual labels:  test, testing-tools
kotest-gradle-plugin
A gradle plugin for Kotest
Stars: ✭ 18 (-95.96%)
Mutual labels:  test, testing-tools
api-test
🌿 A simple bash script to test JSON API from terminal in a structured and organized way.
Stars: ✭ 53 (-88.09%)
Mutual labels:  test, testing-tools
BaseUrlManager
⛵ BaseUrlManager的设计初衷主要用于开发时,有多个环境需要打包APK的场景,通过BaseUrlManager提供的BaseUrl动态设置入口,只需打一次包,即可轻松随意的切换不同的开发环境或测试环境。在打生产环境包时,关闭BaseUrl动态设置入口即可。
Stars: ✭ 43 (-90.34%)
Mutual labels:  test, testing-tools
laika
Log, test, intercept and modify Apollo Client's operations
Stars: ✭ 99 (-77.75%)
Mutual labels:  test, testing-tools
carina-demo
Carina demo project.
Stars: ✭ 40 (-91.01%)
Mutual labels:  test, testing-tools
Wasmite
Now WebAssembly has proper testing, unit-testing and debugging 🤗
Stars: ✭ 20 (-95.51%)
Mutual labels:  test, testing-tools
eaf-linter
🤪 A linter, prettier, and test suite that does everything as-simple-as-possible.
Stars: ✭ 17 (-96.18%)
Mutual labels:  test, testing-tools
puppeteer-screenshot-tester
Small library that allows us to compare screenshots generated by puppeteer in our tests.
Stars: ✭ 50 (-88.76%)
Mutual labels:  test, testing-tools
generator-react-jest-tests
A React Jest test generator. Generates snapshot tests for React components.
Stars: ✭ 34 (-92.36%)
Mutual labels:  test, testing-tools
Zora
Lightest, yet Fastest Javascript test runner for nodejs and browsers
Stars: ✭ 356 (-20%)
Mutual labels:  test, testing-tools
Orion-Stress-Tester
A simple, efficient and accurate stress tester, support HTTP, WebSocket and TCP
Stars: ✭ 32 (-92.81%)
Mutual labels:  test, testing-tools
sushi
The SUSHI test case generator
Stars: ✭ 19 (-95.73%)
Mutual labels:  test, testing-tools
playwright-test
Run unit tests with several runners or benchmark inside real browsers with playwright.
Stars: ✭ 81 (-81.8%)
Mutual labels:  test, testing-tools
scalatest-junit-runner
JUnit 5 runner for Scalatest
Stars: ✭ 30 (-93.26%)
Mutual labels:  test, testing-tools
qiniutest
Qiniu httptest tool: qiniutest
Stars: ✭ 36 (-91.91%)
Mutual labels:  test, testing-tools
gmock-xcode
Xcode integration for GoogleMock through XCTest
Stars: ✭ 18 (-95.96%)
Mutual labels:  test, testing-tools

tparse Actions Coverage

A command line tool for analyzing and summarizing go test output.

Don't forget to run go test with the -json flag.

Pass Fail

By default, tparse will always return test failures and panics, if any, followed by a package-level summary table.

To get additional info on passed tests run tparse with -pass flag. Tests are grouped by package and sorted by elapsed time in descending order (longest to shortest).

But why?! for more info.

Installation

go get github.com/mfridman/tparse

Or download the latest pre-built binary here.

Usage

Once tparse is installed there are 2 ways to use it:

  1. Run go test as normal, but add -json flag and pipe output to tparse.
go test fmt -json | tparse -all
  1. Save the output of go test with -json flag into a file and call tparse with filename as an argument.
go test fmt -json > fmt.out
tparse -all fmt.out

Tip: run tparse -h to get usage and options.

But why?!

go test is awesome, but a bit verbose. Sometimes one just wants failures, grouped by package, printed with a dash of color and bubbled to the top.

tparse attempts to do just that; return failed tests and panics, if any, followed by a single package-level summary.

But, let's take it a bit further. With -all (-pass and -skip combined) can get additional info, such as which tests were skipped and elapsed time of each passed test.

tparse comes with a -dump flag to replay everything that would have otherwise been printed. Enabling users to retrieve original go test output. Eliminating the need for tee /dev/tty between pipes.

The default print order is:

  • go test output (if adding -dump flag)
  • passed/skipped table (if adding -all, -skip or -pass flag)
  • failed tests and panics
  • summary

The default print order can be reversed with -top flag.

For narrow displays the -smallscreen flag may be useful, dividing a long test name and making it vertical heavy:

TestSubtests/an_awesome_but_long/subtest_for_the/win

TestSubtests
 /an_awesome_but_long
 /subtest_for_the
 /win

tparse aims to be a simply alternative to one-liner bash functions.


P.S. tparse uses itself in GitHub actions:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].