gotestfile

command module
v0.0.0-...-04203d3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 11 Imported by: 0

README

gotestfile.exe

GOTESTFILE.exe reads the tests from a series of test files and runs just those tests. It simulates the behavior of VSCode's "Run File Tests" command.

Usage

gotestfile -debug -env ABC path/file_test.go [...files]

  • -debug prints debug information and runs the tests in verbose mode
  • -env will print all environment variables with that prefix before the test.

Notes

  • It has only been tested on Windws but it should work on other operating systems.
  • It runs each test with -count=1 and -p=1 since that's what I needed.
  • It runs go test for each file

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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