99x / 99x/serverless-dynamodb-local

Rollbacks for Unit Testing

Open
#163 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
621
Forks
232
PR merge metrics
No merged PRs in 30d

Description

Im using serverless-dynamodb-local to do some unit testing.

After each test I need to clear out all the db tables ready for the next test. In other framework and DBs I've been able to 'rollback' all the changes after each test, therefore starting with a clean set of tables.

Is there any way to perform rollbacks?

Im currently having to rebuild the database before every test and its really slowed up my tests.

Contributor guide

Open the contributing guide

Research direction

The issue names no file, test, or entry point. First inspect the plugin's database-management behavior and the available DynamoDB Local capabilities, then determine whether rollback-based isolation is supported. Done should be defined as reliably restoring a clean table state between tests without rebuilding the database each time.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
databases, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.