Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/nakatamixi/go-test-cloud-logging-exporter

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/nakatamixi/go-test-cloud-logging-exporter

  • v0.0.0-20240617002607-7acaf721f3e8
  • Source
  • Go
  • Socket score

Version published
Created
Source

go-test-cloud-logging-exporter

Export go test -json results to Google Cloud Logging for monitoring.

How to use.

Install

go get -u github.com/nktks/go-test-cloud-logging-exporter

Usage

go-test-cloud-logging-exporter -h
Usage of go-test-cloud-logging-exporter:
  -id string
    	test id for log attribute (default "fbcabe2b-5196-475d-afdb-eb726165ad3a")
  -junitxml string
    	gotestsum --junitxml file path
  -name string
    	logName for Cloud Logging (default "go-test-log")
  -p string
    	gcp project id
  -top int
    	logging target top number sorted by elapsed (default 50)

Run

by go test -json

go test -json ./... | GOOGLE_APPLICATION_CREDENTIALS=/path/to/cred.json go-test-cloud-logging-exporter -p your-gcp-project

by gotestsum --junitxml=junit.xml

gotestsum --junitfile=junit.xml ./...
GOOGLE_APPLICATION_CREDENTIALS=/path/to/cred.json go-test-cloud-logging-exporter -p your-gcp-project -junitxml junit.xml

You need roles/logging.logWriter permission to your account.

FAQs

Package last updated on 17 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc