Skip to content

Commit b5612cb

Browse files
doc: update README.md with functional test instructions
1 parent 3e816c4 commit b5612cb

1 file changed

Lines changed: 35 additions & 2 deletions

File tree

README.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,16 @@ To build the package, run:
9292
uv build
9393
```
9494

95-
To run the tests, run:
95+
To run the standard tests, run:
9696

9797
```bash
98-
pytest
98+
pytest -m 'not functional'
9999
```
100100

101+
Developers wishing to run the functional tests should see the
102+
[Functional Tests](#functional-tests) section below.
103+
104+
101105
To lint and format the code, run:
102106

103107
```bash
@@ -117,3 +121,32 @@ To re-compile the protobuf files, run from the repository's root directory:
117121
```bash
118122
bash scripts/compile_proto.sh
119123
```
124+
125+
### Functional Tests
126+
Functional tests require an Athena environment to run against. You can set up
127+
the environment variables in a `.env` file in the root of the repository, or in
128+
your shell environment:
129+
130+
You must set the following variables:
131+
```
132+
ATHENA_HOST=your-athena-host (e.g. myathenahost.com)
133+
OAUTH_CLIENT_ID=your-oauth-client-id
134+
OAUTH_CLIENT_SECRET=your-oauth-client-secret
135+
```
136+
137+
You can optionally set the following variables:
138+
```
139+
OAUTH_AUTH_URL=your-oauth-auth-url (default: https://crispthinking.auth0.com/oauth/token)
140+
OAUTH_AUDIENCE=your-oauth-audience (default: crisp-athena-live)
141+
TEST_IMAGE_COUNT=number-of-images-to-test-with (default: 5000) - this is the
142+
number of images the _streaming_ test will use.
143+
TEST_MIN_INTERVAL=minimum-interval-in-ms (default: None, send as fast as
144+
possible) - this is the minimum interval between
145+
images for the _streaming_ test.
146+
```
147+
148+
Then run the functional tests with:
149+
150+
```bash
151+
pytest -m functional
152+
```

0 commit comments

Comments
 (0)