Skip to content

refine test speed using transaction rollback #73

Open
@practicalli-johnny

Description

@practicalli-johnny

Use transaction rollback so any database updated done by the unit tests is not committed permanently.

Create two fixtures,
:once drop/create database
:every run tests in transaction

The transaction is set to rollback regardless, leaving the database in the previous state (just the empty database tables)

https://purelyfunctional.tv/mini-guide/clojure-database-test-faster/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions