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

statsd_test_harness

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statsd_test_harness

  • 0.2.10
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

StatsdTestHarness

A test harness that captures output of various testing frameworks to post to a statsd server.

Installation

Add this line to your application's Gemfile:

gem 'statsd_test_harness'

And then execute:

$ bundle

Or install it yourself as:

$ gem install statsd_test_harness

Configuration

Set the following environment variables for statsd integration:

export STATSD_HOST=192.168.42.10
export STATSD_PORT=8125
export STATSD_NAMESPACE=statsd_test_harness
export STATSD_APP_NAME=my_app_name

Usage

You must specify a config file at runtime:

wrap run_suite --config path/to/config/file.rb

For an example of what the config file should look like, refer to config/sample_config.rb

To register a new test framework, add it to the config.tools array in your config file, e.g.

{
  name: 'my_framework',
  command: 'test',
  label: 'my_framework',
  options: '',
  ignore_return_value: false
}

Set the ignore_return_value flag to true if you don't want to report an unsuccessful test run (based on exit status).

Development

To start a graphite/statsd docker container for testing purposes:

docker run -d --name graphite --restart=always -p 80:80 -p 2003:2003 -p 8125:8125/udp hopsoft/graphite-statsd -e VIRTUAL_HOST=graphite.docker

Contributing

  1. Fork it ( https://github.com/[my-github-username]/statsd_test_harness/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

FAQs

Package last updated on 05 Oct 2015

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