Skip to content

Instantly share code, notes, and snippets.

View FFFFFaraway's full-sized avatar

Song Wei FFFFFaraway

View GitHub Profile
@FFFFFaraway
FFFFFaraway / go-test-many.sh
Created September 27, 2022 05:27 — forked from jonhoo/go-test-many.sh
Script for running go tests many times in parallel, printing the current status, and logging errors
#!/bin/bash
#
# Script for running `go test` a bunch of times, in parallel, storing the test
# output as you go, and showing a nice status output telling you how you're
# doing.
#
# Normally, you should be able to execute this script with
#
# ./go-test-many.sh
#
C++ 🕓 1h14m ██████████████░░░░░░░░░░ 58.8%
Python 🕓 32m ██████▏░░░░░░░░░░░░░░░░░ 25.9%
Go 🕓 17m ███▎░░░░░░░░░░░░░░░░░░░░ 13.8%
GitIgnore file 🕓 1m ▏░░░░░░░░░░░░░░░░░░░░░░░ 1.0%
Markdown 🕓 0s ░░░░░░░░░░░░░░░░░░░░░░░░ 0.2%