RFC: a framework for testing Persistent-backed modules

5 views
Skip to first unread message

Bryan Richter

unread,
Feb 16, 2016, 12:19:29 AM2/16/16
to haskel...@googlegroups.com
Hi folks,

I wanted to build tests for a module that is backed by Persistent. I
ended up deciding that *including* Persistent's machinery would be the
most straightforward. But of course, databases are notoriously...
stateful.

In order to have independent tests, I built the following module.

https://github.com/chreekat/sd-mechanism/blob/master/test/Test/Tasty/Persist.hs

You can see it being exercised here:

https://github.com/chreekat/sd-mechanism/blob/master/test/test.hs

Before I keep going and removing e.g. hardcoded db connection strings,
does anyone have any feedback?
signature.asc
Reply all
Reply to author
Forward
0 new messages