Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Gem repo providing Integration SDK testing/scaffolding facilities

License

Notifications You must be signed in to change notification settings

DataDog/datadog-sdk-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datadog-sdk-testing

Gem repo providing Integration SDK testing/scaffolding facilities.

Gem Version

usage

This gem essentially just provides a set of rake tasks to help you get up and running with integration testing and scaffolding. We expect to use this gem in integrations-core and integrations-extras.

To use the tasks in this gem just add a Rakefile to the relevant project with these contents:

#!/usr/bin/env rake

require 'rake'

unless ENV['CI']
  rakefile_dir = File.dirname(__FILE__)
  ENV['TRAVIS_BUILD_DIR'] = rakefile_dir
  ENV['INTEGRATIONS_DIR'] = File.join(rakefile_dir, 'embedded')
  ENV['PIP_CACHE'] = File.join(rakefile_dir, '.cache/pip')
  ENV['VOLATILE_DIR'] = '/tmp/integration-sdk-testing'
  ENV['CONCURRENCY'] = ENV['CONCURRENCY'] || '2'
  ENV['NOSE_FILTER'] = 'not windows'
  ENV['RUN_VENV'] = 'true'
  ENV['SDK_TESTING'] = 'true'
end

ENV['SDK_HOME'] = File.dirname(__FILE__)

spec = Gem::Specification.find_by_name 'datadog-sdk-testing'
load "#{spec.gem_dir}/lib/tasks/sdk.rake"

if you wish to enable the remote facilities for the requirement conflict checking tool you will have to install github3.py (pre-release):

pip install --pre github3.py

By default this tool is designed to be used as a pre-commit hook and runs only on local repos. Due to the duration of the validation runs it's not recommended to enable remote repos when using as a pre-commit hook. We perform requirement validation in our continuous integration environment, so it's definitely not mandatory.

About

Gem repo providing Integration SDK testing/scaffolding facilities

Resources

License

Stars

Watchers

Forks

Packages

No packages published