aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorA.D <Raveline@users.noreply.github.com>2019-05-03 11:44:51 +0200
committerGitHub <noreply@github.com>2019-05-03 11:44:51 +0200
commit33eca3fd474c089b102da97ba341e110d426f69d (patch)
tree1b9e4edd979aad5bcc68b77c2f3d23db424c80f9 /README.md
parentfc6d19e370eded2d5c819d1ef186e26ecd9419f2 (diff)
parentd7b45e63148bb14dbbd3d61b4f5305338176dd45 (diff)
downloadsqueal-hspec-33eca3fd474c089b102da97ba341e110d426f69d.tar.gz
squeal-hspec-33eca3fd474c089b102da97ba341e110d426f69d.tar.zst
squeal-hspec-33eca3fd474c089b102da97ba341e110d426f69d.zip
Merge pull request #2 from Raveline/support-non-temp-database
Support non temp database
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 11 insertions, 4 deletions
diff --git a/README.md b/README.md
index e254c58..02ed812 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,18 @@
1# squeal-hspec 1# squeal-hspec
2 2
3Helpers for creating database tests with hspec and squeal, inspired by Jonathan Fischoff's 3Helpers for creating database tests with hspec and squeal, inspired by Jonathan
4Fischoff's
4[hspec-pg-transact](http://hackage.haskell.org/package/hspec-pg-transact). 5[hspec-pg-transact](http://hackage.haskell.org/package/hspec-pg-transact).
5 6
6This uses @tmp-postgres@ to automatically and connect to a temporary instance of postgres on a random port. 7This uses @tmp-postgres@ to automatically and connect to a temporary instance of
8postgres on a random port.
7 9
8Current version is done to operate with Squeal 0.4.0.0. 10Current version is done to operate with Squeal 0.4.0.0.
9 11
10`describeDB` lets you initate a series of `itDB` specs which will operate in the same context. 12`describeDB` lets you initate a series of `itDB` specs which will operate in the
11It takes migrations to run and a series of fixtures to fill the database. 13same context. It takes migrations to run and a series of fixtures to fill the
14database.
15
16Setting the env var `TEST_DB_CONNECTION_STRING` will let you use a non-temporary
17database if need be. Tear down will run the `migrateDown` to make sure the test
18db doesn't get filled with invalid data.