Skip to content

Instantly share code, notes, and snippets.

@rupurt
Last active March 27, 2018 17:39
Show Gist options
  • Save rupurt/cdbafc3b8081d525e2dd903e1c3773c4 to your computer and use it in GitHub Desktop.
Save rupurt/cdbafc3b8081d525e2dd903e1c3773c4 to your computer and use it in GitHub Desktop.
Run go tests on with fswatch
fswatch -0 -r -e ".*/4913" -e ".*/\.git/.*" . | tee /tmp/fswatch-changes | xargs -0 -n 1 -I {} richgo test ./...
@rupurt
Copy link
Author

rupurt commented Mar 26, 2018

TODO:

  • Vim appears to be creating temp files when saving a test e.g. chainlink/web/4913, chainlink/web/job_specs_controller_test.go SO
  • go test appears to redirect stderr to stdout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment