Skip to content

Commit 5bacf0e

Browse files
committed
Add new post: go test with color output and auto rerun
1 parent ce6d6df commit 5bacf0e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<html>
2+
<head>
3+
<title>Go test with color output and auto rerun</title>
4+
<link rel="stylesheet" href="../styles.css">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
</head>
7+
<script type="text/javascript" src="./count_visitors.js">
8+
</script>
9+
<body>
10+
<h1>Go test with color output and auto rerun</h1>
11+
<ol>
12+
<li>
13+
Install and setup <a href="https://stackoverflow.com/a/40160711/1361132">grc</a>, a generic colourizer, for go syntax.
14+
</li>
15+
<li>
16+
Install <a href="https://jvns.ca/blog/2020/06/28/entr/">entr</a>.
17+
</li>
18+
<li>
19+
Run:
20+
<br/>
21+
<br/>
22+
<i style="margin-left: 20px"> > ls *.go | entr -c grc go test .</i>
23+
<br/>
24+
<br/>
25+
"-c" is for cleaning terminal before re-running:
26+
</li>
27+
</ol>
28+
<h5 style="color:grey;">
29+
1 November 2021
30+
</h5>
31+
</body>
32+
</html>

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ <h1> blog </h1>
2525
Troubleshooting WSL2 installation
2626
</a>
2727
</li>
28+
<li>
29+
<small> 1 Oct 2021 </small>
30+
<a href="./blog/04_go_test_with_color_output_and_auto_rerun.html">
31+
Go test with color output and auto rerun
32+
</a>
33+
</li>
2834
</ul>
2935
<h2>
3036
<a href="./me.html"> about </a>

0 commit comments

Comments
 (0)