Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion packages/spacecat-shared-data-access/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,30 @@ For a detailed schema, refer to `docs/schema.json`. This schema is importable to

## Integration Testing

The module includes comprehensive integration tests embedding a local DynamoDB server with in-memory storage for testing:
The module includes comprehensive integration tests embedding a local DynamoDB server with in-memory storage for
testing.

### Pre-requisites

Java Runtime Environment (JRE) version 17.x or newer must be installed and properly configured to run the
local DynamoDB server. See: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html

How to check the installed Java version:

```bash
java -version
```

Run this command both in the `spacecat-shared` and `spacecat-shared-data-access` directories to install
the required dependencies:

```bash
npm run install
```

### Running the integration tests

To run the integration tests, execute the following command in the `spacecat-shared-data-access` directory:

```bash
npm run test:it
Expand Down