Top 1.1% dependent packages on proxy.golang.org
Top 0.4% dependent repos on proxy.golang.org
Top 5.5% forks on proxy.golang.org
Top 0.9% docker downloads on proxy.golang.org
proxy.golang.org : github.com/google/go-cmdtest
The cmdtest package simplifies testing of command-line interfaces. It provides a simple, cross-platform, shell-like language to express command execution. It can compare actual output with the expected output, and can also update a file with new "golden" output that is deemed correct. Start using cmdtest by writing a test file with commands and expected output, giving it the extension ".ct". All test files in the same directory make up a test suite. See the TestSuite documentation for the syntax of test files. To test, first read the suite: Then configure the resulting TestSuite by adding commands or enabling debugging features. Lastly, call TestSuite.Run with false to compare or true to update. Typically, this boolean will be the value of a flag:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/google/go-cmdtest
Keywords:
cli
, golang
, test
, testing-tools
License: Apache-2.0
Latest release: about 3 years ago
First release: over 5 years ago
Namespace: github.com/google
Dependent packages: 33
Dependent repositories: 300
Stars: 139 on GitHub
Forks: 15 on GitHub
Docker dependents: 50
Docker downloads: 464,030
See more repository details: repos.ecosyste.ms
Last synced: 30 days ago