sdk-test-harness

command module
v2.0.0-alpha.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

SDK test harness

CircleCI

This tool runs standardized test suites for LaunchDarkly SDKs.

To use the test harness for any given SDK, we must implement a small web service that exercises the features of the SDK. The behavior of the service endpoints is described below. After starting the service, run the test harness and give it the base URL of the test service. The test harness will start its own HTTP server to provide simulations of LaunchDarkly endpoints; it will tell the test service to create SDK client instances that connect to those endpoints.

About LaunchDarkly

  • LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
    • Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
    • Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
    • Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
    • Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
  • LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Check out our documentation for a complete list.
  • Explore LaunchDarkly

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package data contains functions for reading test data files.
Package data contains functions for reading test data files.
testmodel
Package testmodel contains schema types for data files used in parameterized tests.
Package testmodel contains schema types for data files used in parameterized tests.
Package framework contains the low-level implementation of test harness infrastructure that can be reused for different kinds of tests.
Package framework contains the low-level implementation of test harness infrastructure that can be reused for different kinds of tests.
harness
Package harness contains basic reusable test harness components, without any domain-specific logic.
Package harness contains basic reusable test harness components, without any domain-specific logic.
ldtest
Package ldtest contains a test runner framework that is similar to Go's testing package, but is run as regular Go application code rather than Go tests.
Package ldtest contains a test runner framework that is similar to Go's testing package, but is run as regular Go application code rather than Go tests.
ldtest/internal
Package internal contains test helpers for ldtest.
Package internal contains test helpers for ldtest.
opt
Package opt provides the generic Maybe type for representing optional values without pointers.
Package opt provides the generic Maybe type for representing optional values without pointers.
Package mockld provides tools for simulating LaunchDarkly service endpoints.
Package mockld provides tools for simulating LaunchDarkly service endpoints.
Package sdktests contains the domain-specific SDK test logic.
Package sdktests contains the domain-specific SDK test logic.
Package servicedef contains definitions for the REST protocol that test services must implement.
Package servicedef contains definitions for the REST protocol that test services must implement.
callbackfixtures
Package callbackfixtures contains definitions for the REST protocol that test services must implement, specifically for callback requests from the test service to the test harness.
Package callbackfixtures contains definitions for the REST protocol that test services must implement, specifically for callback requests from the test service to the test harness.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL