https://github.com/flagsmith/engine-test-data
Repository containing a set of test files to use for testing the flagsmith engine
https://github.com/flagsmith/engine-test-data
Last synced: about 1 month ago
JSON representation
Repository containing a set of test files to use for testing the flagsmith engine
- Host: GitHub
- URL: https://github.com/flagsmith/engine-test-data
- Owner: Flagsmith
- Created: 2021-12-17T15:37:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-11-14T10:42:05.000Z (5 months ago)
- Last Synced: 2025-11-14T12:27:37.741Z (5 months ago)
- Size: 283 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# 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.
```json
{
"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:
```bash
git submodule add git@github.com: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](https://github.com/Flagsmith/flagsmith-engine/blob/main/tests/engine_tests/test_engine.py).