https://github.com/billgraziano/gotestfile
GOTestFile 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
https://github.com/billgraziano/gotestfile
go testing
Last synced: over 1 year ago
JSON representation
GOTestFile 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
- Host: GitHub
- URL: https://github.com/billgraziano/gotestfile
- Owner: billgraziano
- License: mit
- Created: 2020-07-03T11:09:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-16T14:55:30.000Z (about 5 years ago)
- Last Synced: 2023-03-24T03:35:02.232Z (over 3 years ago)
- Topics: go, testing
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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