typelevel / typelevel/doobie

Example of test with in-memory database table creation

Open
#253 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
2.2k
Forks
379
Avg merge
14m
Merged PRs (30d)
8

Description

It would be handy to be able to write tests against an in-memory database, so that testing does not rely on an existing database. An example of this using setup/teardown in a specs2 test would be very useful.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file or existing test; start by locating the project's specs2 tests and any database setup or test utilities. Add a runnable example showing setup and teardown for creating tables in an in-memory database, and verify that the example tests without relying on an existing database.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
database, testing
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.