Ecosyste.ms: Packages

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

Top 4.4% on proxy.golang.org
Top 0.5% forks on proxy.golang.org

proxy.golang.org : github.com/GoogleCloudPlatform/golang-samples/testing/sampletests

The sampletests command adds the region tags tested by each test to the XML properties of that test case. It reads JUnit XML from stdin and writes JUnit XML to stdout. For example, if TestFoo tests the regions foo_hello_world and foo_hello_gopher, the TestFoo element will have the following property: sampletests only looks at direct function calls or references by tests. So, if you have a map from string -> function reference in the global scope and test functions only reference the string, sampletests will not work. There are some duplicate region tags, but they aren't tracked anywhere else, so it's OK if they are "applied" to more than one test. sampletests only looks in the current module, which matches the behavior of `go test`. So, if you run `go test ./...` and sampletests in the same directory they should both find the same set of packages. The test coverage over all regions is printed to stderr at the end. The coverage is based on the entire module, not just the tests that happen to be in the given XML input. The XML may not be for for all tests in the module. Warnings are printed to stderr for invalid region tags (e.g. mis-matched START and END tags). The -enable_xml flag can be used to disable XML processing and only print warnings and coverage. To get the number of unique region tags in the repo manually, run:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/%21google%21cloud%21platform/golang-samples/testing/sampletests
Keywords: appengine, go, golang, google-appengine, google-cloud, sample, samples
License: Apache-2.0
Latest release: almost 2 years ago
First release: almost 3 years ago
Namespace: github.com/GoogleCloudPlatform/golang-samples/testing
Stars: 3,785 on GitHub
Forks: 1,634 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago

    Loading...
    Readme
    Loading...