GitHub - axcdnt/snitch: Snitch is the tool that keeps your tests under surveille...
source link: https://github.com/axcdnt/snitch
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Snitch
Snitch is a binary that helps your TDD cycle (or not) by watching tests and implementations of Go files. It works by scanning files, checking the modification date on save and re-running your tests.
It's usual in Go projects to keep the implementation and tests under the same package, so this binary follows this convention.
This tool focuses on Go developers. With a few LOCs we get interesting stuff.
Inspiration
It was a Friday afternoon and I was writing code, but had nothing to watch and report my tests while I changed code.
Inspired by Guard, I decided to build this and thought more people could benefit from it.
Features
- Automatically runs your tests
- Re-scan new files, so no need to restart
- Runs on a package basis
- Shows test coverage percentage
- Desktop notifications on macOS and Linux (via
notify-send
)
Requirements
Go 1.12+
The binary is go-gettable. Make sure you have GOPATH
correctly set and added to the $PATH
:
go get github.com/axcdnt/snitch
After go-getting the binary, it will probably be available on your terminal.
▶ snitch --help
Usage of snitch:
-interval duration
the interval (in seconds) for scanning files (default 1s)
-path string
the root path to be watched (default "<current-dir>")
-v Print the current version and exit
Feedback is welcome. I hope you enjoy it!
Recommend
-
23
macOS - @iTvX - 用 little snitch 搜索 sogou,全部禁止后,可以看到,每次敲击键盘按空格,sogou service 都会亮红色(亮红色代表成功切断与服务器进行数据交换)https://ww
-
12
You probably came here because your Mac showed a message telling you that software from “Objective Development Software GmbH” (Little Snitch) loa...
-
8
README snitch.el (pronounced like schnitzel) is a firewall for Emacs. snitch intercepts calls to create network connections or launch subprocesses. Through user...
-
9
Dead Man's Snitch — A dead simple Cron Job Monitoring service Get More Out of Your Cron Jobs Have trouble knowing if your scheduled tasks actually ran? If you have daily backups, monthly emails, or hour...
-
7
5613 members Technology The latest news, reviews and features from the digital and analog world.
-
2
新加坡警方部署 Snitch Bot 以测试搜索“不良社交行为” wanwan (42055)发表于 2021年09月1...
-
5
5993 members Technology The latest news, reviews and features from the digital and analog world.
-
7
Shut up snitch! – reverse engineering and exploiting a critical Little Snitch vulnerability Little Snitch was among the first software packages I tried to reverse and crack when I started using Macs. In the past I reported so...
-
8
Defeating Little Snitch and thinking about piracy... I have managed to bypass Little Snitch 3 hour limit with a one or two bytes patch (can’t remember and too lazy to check it now) three days after I had access to kernel debu...
-
3
Little Snitch continued or the broken nib files! Little Snitch is an awesome target to learn tons of stuff about Mac OS X. It’s a very worthy challenge and I’m loving it… I gave up on it for a while to read some stuff about
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK