An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

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:

Ecosystem
proxy.golang.org
Latest Release
v0.4.0
almost 4 years ago
Versions
4
Dependent Packages
33
Dependent Repos
300
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/google/go-cmdtest
spec
License Apache-2.0
Namespace github.com/google
First Release over 6 years ago
Last Synced 9 days ago
Repository
Stars 181 on GitHub
Forks 14 on GitHub
Docker Dependents 50
Docker Downloads 464,030
Rankings on proxy.golang.org
Overall Top 2.4%
Dependent packages Top 1.1%
Dependent repos Top 0.4%
Forks Top 5.5%
Docker downloads Top 0.9%