gowatch

command module
v0.0.0-...-c450bf1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: MIT Imports: 2 Imported by: 0

README

gowatch

Build Test

GoDoc GitHub license codecov Go Report Card

Watch file change and run test.
Current support is only test.

Feature

  • watch files in specific directory, and run test for only change target when detect changes.
    • when change test source(foo_test.go), run test only in this file.
    • when change no test source(bar.go), run test only in companion test file(bar_test.go).
  • watch single directory or recursive.

Install

On go 1.12 or later with go modules, you can install with go get

go get github.com/meian/gowatch

Usage

test

Watch directory change and trigger test.

# watch current directory(no recursive)
$ gowatch test

# watch foo directory and subdirectories
$ gowatch test -r foo

All options shows with gowatch test -h

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL