Ecosyste.ms: Packages

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

Top 2.4% on proxy.golang.org
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 2 years ago
First release: almost 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: 463,999
See more repository details: repos.ecosyste.ms
Last synced: 29 days ago

    Loading...
    Readme
    Loading...