Skip to content

Flagsmith/engine-test-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Engine Test Data

This repository contains a single directory containing json files that can be used to test that any Flagsmith engine written in a given language is correct.

Each JSON file should consist of a single object in the following format.

{
  "environment": {...},  // the environment document as found in DynamoDB
  "identities_and_responses": [
    {
      "identity": {...},  // the identity as found in DynamoDB,
      "response": {...},  // the response that was obtained from the current API
    }
  ]
}

To use this data, you will need to write a test case in the repository which contains the engine code and include this repository as a submodule to get access to the json files.

To add the git submodule:

git submodule add [email protected]:Flagsmith/engine-test-data.git tests/engine_tests/engine-test-data

An example of how to use the test data can be found in the flagsmith-flag-engine repository here.

About

Repository containing a set of test files to use for testing the flagsmith engine

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •